Skip to content

Commit d96f92f

Browse files
rgbriggspcmoore
authored andcommitted
audit: add syscall information to FEATURE_CHANGE records
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>
1 parent 60cc43f commit d96f92f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/audit.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@ static void audit_log_feature_change(int which, u32 old_feature, u32 new_feature
10991099

11001100
if (audit_enabled == AUDIT_OFF)
11011101
return;
1102-
1103-
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE);
1102+
ab = audit_log_start(current->audit_context,
1103+
GFP_KERNEL, AUDIT_FEATURE_CHANGE);
11041104
if (!ab)
11051105
return;
11061106
audit_log_task_info(ab, current);

0 commit comments

Comments
 (0)