Skip to content

Commit

Permalink
audit: connect LOGIN record to its syscall record
Browse files Browse the repository at this point in the history
Currently the AUDIT_LOGIN event is a standalone record that isn't
connected to any other records that may be part of its syscall event. To
avoid the confusion of generating two events, connect the records by
using its syscall context.

Please see the github issue
linux-audit/audit-kernel#110

Signed-off-by: Richard Guy Briggs <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
rgbriggs authored and pcmoore committed Mar 21, 2019
1 parent 95e0b46 commit 73e65b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ static void audit_log_set_loginuid(kuid_t koldloginuid, kuid_t kloginuid,
if (!audit_enabled)
return;

ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_LOGIN);
ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_LOGIN);
if (!ab)
return;

Expand Down

0 comments on commit 73e65b8

Please sign in to comment.