diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2019-02-02 06:45:17 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-02-04 01:49:35 +0300 |
commit | 5f3d544f1671d214cd26e45bda326f921455256e (patch) | |
tree | 086be468806c2c27a768b754db36522e06d0babd /include/linux/sched.h | |
parent | 90462a5bd30c6ed91c6758e59537d047d7878ff9 (diff) | |
download | linux-5f3d544f1671d214cd26e45bda326f921455256e.tar.xz |
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index f9788bb122c5..765119df759a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -885,8 +885,10 @@ struct task_struct { struct callback_head *task_works; - struct audit_context *audit_context; #ifdef CONFIG_AUDIT +#ifdef CONFIG_AUDITSYSCALL + struct audit_context *audit_context; +#endif kuid_t loginuid; unsigned int sessionid; #endif |