audit: remove audit_context when CONFIG_ AUDIT and not AUDITSYSCALL
authorRichard Guy Briggs <rgb@redhat.com>
Sat, 2 Feb 2019 03:45:17 +0000 (22:45 -0500)
committerPaul Moore <paul@paul-moore.com>
Sun, 3 Feb 2019 22:49:35 +0000 (17:49 -0500)
commit5f3d544f1671d214cd26e45bda326f921455256e
tree086be468806c2c27a768b754db36522e06d0babd
parent90462a5bd30c6ed91c6758e59537d047d7878ff9
audit: remove audit_context when CONFIG_ AUDIT and not AUDITSYSCALL

Remove audit_context from struct task_struct and struct audit_buffer
when CONFIG_AUDIT is enabled but CONFIG_AUDITSYSCALL is not.

Also, audit_log_name() (and supporting inode and fcaps functions) should
have been put back in auditsc.c when soft and hard link logging was
normalized since it is only used by syscall auditing.

See github issue https://github.com/linux-audit/audit-kernel/issues/105

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/sched.h
kernel/audit.c
kernel/audit.h
kernel/auditsc.c