diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2019-01-23 01:06:39 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-01-25 21:03:23 +0300 |
commit | 4b7d248b3a1de483ffe9d05c1debbf32a544164d (patch) | |
tree | 6b652f40d702f6b09c084676955312902c650900 /include/linux/sched.h | |
parent | 626abcd13d4ea2b67be3249a250046cf713f532a (diff) | |
download | linux-4b7d248b3a1de483ffe9d05c1debbf32a544164d.tar.xz |
audit: move loginuid and sessionid from CONFIG_AUDITSYSCALL to CONFIG_AUDIT
loginuid and sessionid (and audit_log_session_info) should be part of
CONFIG_AUDIT scope and not CONFIG_AUDITSYSCALL since it is used in
CONFIG_CHANGE, ANOM_LINK, FEATURE_CHANGE (and INTEGRITY_RULE), none of
which are otherwise dependent on AUDITSYSCALL.
Please see github issue
https://github.com/linux-audit/audit-kernel/issues/104
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: tweaked subject line for better grep'ing]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 89541d248893..f9788bb122c5 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -886,7 +886,7 @@ struct task_struct { struct callback_head *task_works; struct audit_context *audit_context; -#ifdef CONFIG_AUDITSYSCALL +#ifdef CONFIG_AUDIT kuid_t loginuid; unsigned int sessionid; #endif |