Re: [PATCH net-next] audit: Move audit_log_task declaration under CONFIG_AUDITSYSCALL

From
Daniel Borkmann <daniel@iogearbox.net>
Date
2019-11-21 20:39:03
Reply to
Jiri Olsa, 2019-11-21
On 11/21/19 4:58 PM, Jiri Olsa wrote:
The 0-DAY found that audit_log_task is not declared under
CONFIG_AUDITSYSCALL which causes compilation error when
it is not defined:

     kernel/bpf/syscall.o: In function `bpf_audit_prog.isra.30':
  >> syscall.c:(.text+0x860): undefined reference to `audit_log_task'

Adding the audit_log_task declaration and stub within
CONFIG_AUDITSYSCALL ifdef.

Fixes: 91e6015b082b ("bpf: Emit audit messages upon successful prog load and unload")
Reported-by: kbuild test robot <redacted>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Thread (2 messages) 2 messages, 2 authors, last reply 2019-11-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help