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

suppress SELinux audit for tmpfs relabels #2222

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

bcressey
Copy link
Contributor

Issue number:
Fixes #1924

Description of changes:
Containers are not permitted to relabel files. However, they may use standard tools such as mv that attempt to set xattrs on the target, and this generates an audit message.

Since the operation is otherwise successful, this can be confusing and suggest a problem that doesn't really exist. Turn off the audit message to avoid this.

Testing done:
Confirmed on an aws-k8s-1.22 AMI that the AVC denial for the VPC CNI plugin is no longer logged.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Containers are not permitted to relabel files. However, they may use
standard tools such as `mv` that attempt to set xattrs on the target,
and this generates an audit message.

Since the operation is otherwise successful, this can be confusing
and suggest a problem that doesn't really exist. Turn off the audit
message to avoid this.

Signed-off-by: Ben Cressey <[email protected]>
@bcressey bcressey merged commit 2eaef13 into bottlerocket-os:develop Jun 18, 2022
@bcressey bcressey deleted the suppress-relabel-audit branch June 18, 2022 00:23
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

Successfully merging this pull request may close these issues.

AVC denials w/ aws-vpc-cni
3 participants