diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2019-03-19 15:23:29 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-03-20 20:57:48 -0400 |
commit | 73e65b88feb919f95bdb77c4ed35f69588cf27ee (patch) | |
tree | 07145ed7696af7225b4e4cb074e5267ef0df27ca /kernel/audit.c | |
parent | 95e0b46fcebd7dbf6850dee96046e4c4ddc7f69c (diff) |
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
https://github.com/linux-audit/audit-kernel/issues/110
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index c89ea48c70a6..b96bf69183f4 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -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; |