Skip to content

Commit 73e65b8

Browse files
rgbriggspcmoore
authored andcommitted
audit: connect LOGIN record to its syscall record
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 <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 95e0b46 commit 73e65b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/audit.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ static void audit_log_set_loginuid(kuid_t koldloginuid, kuid_t kloginuid,
22202220
if (!audit_enabled)
22212221
return;
22222222

2223-
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_LOGIN);
2223+
ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_LOGIN);
22242224
if (!ab)
22252225
return;
22262226

0 commit comments

Comments
 (0)