summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2018-04-11 08:46:52 -0400
committerPaul Moore <paul@paul-moore.com>2018-04-20 14:57:30 -0400
commitd96f92f4aae1132482ce0a584c4bc3ce32c796ea (patch)
tree575cc7cd55d1a3a2299c54df1ed955f2e20ed23a /kernel
parent60cc43fc888428bb2f18f08997432d426a243338 (diff)
downloadblackbird-obmc-linux-d96f92f4aae1132482ce0a584c4bc3ce32c796ea.tar.gz
blackbird-obmc-linux-d96f92f4aae1132482ce0a584c4bc3ce32c796ea.zip
audit: add syscall information to FEATURE_CHANGE records
Tie syscall information to FEATURE_CHANGE calls since it is a result of user action. See: https://github.com/linux-audit/audit-kernel/issues/80 Signed-off-by: Richard Guy Briggs <rgb@redhat.com> [PM: 80-char fixes] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 670665c6e2a6..e9f9a90790e5 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1099,8 +1099,8 @@ static void audit_log_feature_change(int which, u32 old_feature, u32 new_feature
if (audit_enabled == AUDIT_OFF)
return;
-
- ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE);
+ ab = audit_log_start(current->audit_context,
+ GFP_KERNEL, AUDIT_FEATURE_CHANGE);
if (!ab)
return;
audit_log_task_info(ab, current);
OpenPOWER on IntegriCloud