Skip to contentSkip to conversation

Need help with af_unix audisd plugin

DISCUSSION Rinat Gadelshin 1 participant 1 message Oct 16, 2023 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 2733163.mvXUDI8C0e@x2

#2 lore raw

Steve, thank you so much =)

I suppose you meant ncat -U --recv-only due to nc doesn't have --recv-only option. ncat works as expected (shows incoming audit messages).

Regards
Rinat

Quoted 19 lines · Steve Grubb

Hello,

Quoted 1 line · EDT Rinat Gadelshin

Could I ask your help with the plugin?

The mail list might get a faster response. I sometimes get busy.

Quoted 13 lines

I try to check it by the following way on my Ubuntu 20.04:

- systemctl stop auditd
- set 'active' parameter to 'yes' (file /etc/audisp/plugins.d/af_unix.conf)
- systecmtl start auditd
- systemctl status auditd shows that the service is running.
- auditctl -w /tmp/delme
- auditctl -l shows that the rule has been successfully added.
- ls -l /var/run/audispd_events prints "srwxr-xr-x 1 root root 0 okt 10 18:38 /var/run/audispd_events"
- launch nc -Ul /var/run/audispd_events in another terminal
- echo 1 > /tmp/delme

Quoted 10 lines
Quoted 2 lines

Expected result: nc has received some audit events for the file. Actual result: nc has received nothing.

nc -U --recv-only /var/run/audispd_events

Quoted 1 line

Can you tell me what I did wrong?

See above.

-Steve

--
Linux-audit mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-audit