Skip to content

Commit ff54964

Browse files
authored
audisp-filter: Travers event correctly when forwarding (#399)
Minor doc bugfix
1 parent f45384b commit ff54964

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

audisp/plugins/filter/audisp-filter.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Example1: Do not syslog audit events containing unsuccessful openat syscalls.
3838

3939
First, in the plugin config, make sure that operation mode is set to allowlist, the binary points to /sbin/audispFyslog and provide any additional arguments if needed. Next, create the plugin specific config file with the content below. Before enabling the audit plugin, always make sure the syntax is correct. This can be checked by calling audisp-filter --check path/to/config/file.
4040

41-
.B (type r= SYSCALL && syscall r= openat && success r= yes)
41+
.B (type r= SYSCALL && syscall i= openat && success r= yes)
4242

4343

4444
.SH FILES

audisp/plugins/filter/audisp-filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static void handle_event(auparse_state_t* au, auparse_cb_event_t cb_event_type,
102102
if (forward_event) {
103103
const int records = auparse_get_num_records(au);
104104
for (int i = 0; i < records; i++) {
105+
auparse_goto_record_num(au, i);
105106
const char* txt = auparse_get_record_text(au);
106107

107108
// Need to add new line character to signal end of the current record

0 commit comments

Comments
 (0)