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

Enable system audit logs #235

Closed
randomvariable opened this issue May 15, 2020 · 3 comments
Closed

Enable system audit logs #235

randomvariable opened this issue May 15, 2020 · 3 comments

Comments

@randomvariable
Copy link
Member

Many environments require the use of auditd, so this should be enabled in image-builder, optionally or mandatorily:

Concretely, for PhotonOS images require the audit package to be installed, and the auditd systemd unit enabled.

Additionally, drop the following in /etc/audit/rules.d/container.rules so containerd operations are audited:

-w /usr/local/bin/containerd -p rwxa -k containerd
-w /var/lib/containerd/ -p rwxa -k containerd
-w /etc/containerd/ -p rwxa -k containerd
-w /etc/systemd/system/containerd.service -p rwxa -k containerd
-w /etc/systemd/system/containerd.service.d/ -p rwxa -k containerd
-w /run/containerd/ -p rwxa -k containerd
-w /usr/local/bin/containerd-shim -p rwxa -k containerd
-w /usr/local/bin/containerd-shim-runc-v1 -p rwxa -k containerd
-w /usr/local/bin/containerd-shim-runc-v2 -p rwxa -k containerd
-w /usr/local/sbin/runc -p rwxa -k containerd
@EleanorRigby
Copy link
Contributor

#271

@codenrhoden : we can close this as this was merged yesterday

@codenrhoden
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@codenrhoden: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

4 participants