1
0
Fork 0

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>
hifive-unleashed-5.1
Richard Guy Briggs 2018-04-11 08:46:52 -04:00 committed by Paul Moore
parent 60cc43fc88
commit d96f92f4aa
1 changed files with 2 additions and 2 deletions

View File

@ -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);