# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/11/11154236
- Thread: https://ratatoskr.run/netdev/2019/11/11154195/t.md

```text
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>
```
