Skip to content

Commit 0c6d0f5

Browse files
In normalizer, pickup subject kind for user_login events
1 parent da5cd4d commit 0c6d0f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Fix a segfault in auditd when dns resolution isn't available
44
- Make a reload legacy service for auditd
55
- In auparse python bindings, expose some new types that were missing
6+
- In normalizer, pickup subject kind for user_login events
67

78
2.8.2
89
- Update tables for 4.14 kernel

auparse/normalize.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* normalize.c --
2-
* Copyright 2016-17 Red Hat Inc., Durham, North Carolina.
2+
* Copyright 2016-18 Red Hat Inc., Durham, North Carolina.
33
* All Rights Reserved.
44
*
55
* This library is free software; you can redistribute it and/or
@@ -1566,7 +1566,8 @@ static int normalize_simple(auparse_state_t *au)
15661566
if (set_prime_subject(au, "id", 0)) {
15671567
auparse_first_record(au);
15681568
set_prime_subject(au, "acct", 0);
1569-
}
1569+
} else // If id found, set the subjkind
1570+
set_subject_what(au);
15701571
auparse_first_record(au);
15711572
} else {
15721573
// Subject - alias, uid comes before auid

0 commit comments

Comments
 (0)