Skip to content

Commit

Permalink
audit: add syscall information to FEATURE_CHANGE records
Browse files Browse the repository at this point in the history
Tie syscall information to FEATURE_CHANGE calls since it is a result of
user action.

See: linux-audit/audit-kernel#80

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: 80-char fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
  • Loading branch information
rgbriggs authored and pcmoore committed Apr 20, 2018
1 parent 60cc43f commit d96f92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d96f92f

Please sign in to comment.