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

auditd on talos 1.9 #9907

Open
stereobutter opened this issue Dec 10, 2024 · 3 comments
Open

auditd on talos 1.9 #9907

stereobutter opened this issue Dec 10, 2024 · 3 comments

Comments

@stereobutter
Copy link
Contributor

Feature Request

Provide a way to run user-provided auditd on talos v1.9.

Description

As per #9620 talos v1.9 comes with an auditd-like service. @frezbo told me the motivation for this feature is debugging SELinux policies. As the feature is implemented right now I believe this can not run in tandem with a user-provided auditd since IIRC only one application may bind to the kernel's audit socket.

Possible solutions:

  • provide a control to disable talos auditd service
  • apparently there is a way to run additional listeners on the audit socket (see Use netlink multicast group to receive audit logs elastic/beats#4850). Could talos auditd feature use this instead of binding the audit socket exclusively? Imho. it would also make sense to not call the talos audit feature auditd since it isn't a real instance (or 1:1 implementation) of auditd.
@smira
Copy link
Member

smira commented Dec 10, 2024

Talos auditd runs before any other service might bind to the audit logs, so running as a multicast group might not be possible.

Do you have a reproducer showing that auditd when deployed as a pod (or whatever way you deploy it) no longer works? If you do, we can look into that.

@stereobutter
Copy link
Contributor Author

From linux-audit/audit-kernel#102 it seems its possible to run as a listener without auditd (or another service binding the audit socket around)

@smira
Copy link
Member

smira commented Dec 10, 2024

Please show us a way to reproduce the problem, and we can look for a solution, a solution without a problem doesn't quite work.

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

No branches or pull requests

2 participants