Skip to content

Commit 18f5c1d

Browse files
rgbriggspcmoore
authored andcommitted
audit: join tty records to their syscall
AUDIT_TTY records were logged as seperate events from their syscall records. Join them so they are logged as the single event that they are. Please see the github issue linux-audit/audit-kernel#106 Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 5f3d544 commit 18f5c1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/tty/tty_audit.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static void tty_audit_log(const char *description, dev_t dev,
6666
uid_t loginuid = from_kuid(&init_user_ns, audit_get_loginuid(current));
6767
unsigned int sessionid = audit_get_sessionid(current);
6868

69-
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_TTY);
69+
ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_TTY);
7070
if (ab) {
7171
char name[sizeof(current->comm)];
7272

0 commit comments

Comments
 (0)