Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rule] Add support for saddr_fam filters #144

Closed
andrewkroh opened this issue Oct 16, 2023 · 0 comments · Fixed by #145
Closed

[rule] Add support for saddr_fam filters #144

andrewkroh opened this issue Oct 16, 2023 · 0 comments · Fixed by #145
Assignees

Comments

@andrewkroh
Copy link
Member

andrewkroh commented Oct 16, 2023

Add support for filtering events based on saddr_fam. This is the address family number as found in /usr/include/bits/socket.h. For example, IPv4 would be 2 and IPv6 would be 10.

-a always,exit -F arch=b64 -S connect,accept,listen,bind -F a2=16 -F saddr_fam=2 -F success=1 -F key=network-v4
-a always,exit -F arch=b64 -S connect,accept,listen,bind -F a2=24 -F saddr_fam=10 -F success=1 -F key=network-v6

linux-audit/audit-kernel@61fc577
linux-audit/audit-userspace@fef4978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants