Commit 93727ef
authored
Fix checkpoint issue regarding AUDIT_USER end of event detection (#396)
While consolidating the end of event function to a function, in
commit ccd4bdb, the behavior changed as some messages -- such as
AUDIT_USER messages -- were not considered anymore.
Example:
1) Before the change:
ts1="$(date +%T)"
touch test1.log
auditctl -m test1
ausearch -ts "${ts1}" --checkpoint chk1
----
time->Tue Sep 10 14:45:20 2024
type=USER msg=audit(1725993920.729:2968): pid=63311 uid=0 auid=0 ses=4 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='text=test1 exe="/usr/sbin/auditctl" hostname=hostname-here addr=? terminal=pts/0 res=success'
2) After the change (current behavior):
ts2="$(date +%T)"
touch test2.log
auditctl -m test2
ausearch -ts "${ts2}" --checkpoint chk2
<no matches>
This commit gets the previous behavior back.
Signed-off-by: Sergio Correia <scorreia@redhat.com>1 parent b823ce4 commit 93727ef
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments