Skip to content

Commit 3e51f4c

Browse files
In auparse, when interpreting discard unknown enriched fields
1 parent 11ad59b commit 3e51f4c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- In auparse, output socket family name if unsupported but known
33
- In auparse, store arch & syscall fields in SECCOMP records for interpretation
44
- In auparse_normalize, create an event_kind for seccomp events
5+
- In auparse, when interpreting discard 'unknown' enriched fields
56

67
2.7.4
78
- Fix python3 byte compile for libaudit bindings

auparse/interpret.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,11 @@ char *auparse_do_interpretation(int type, const idata *id,
27942794
const char *val = il.cur->interp_val;
27952795

27962796
if (val) {
2797+
// If we don't know what it is when auditd
2798+
// recorded it, try it again incase the
2799+
// libraries have been updated to support it.
2800+
if (strncmp(val, "unknown-", 8 ) == 0)
2801+
goto unknown;
27972802
if (type == AUPARSE_TYPE_UID ||
27982803
type == AUPARSE_TYPE_GID)
27992804
return print_escaped(val);
@@ -2802,6 +2807,7 @@ char *auparse_do_interpretation(int type, const idata *id,
28022807
}
28032808
}
28042809
}
2810+
unknown:
28052811

28062812
switch(type) {
28072813
case AUPARSE_TYPE_UID:

0 commit comments

Comments
 (0)