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

Add granular control of SELinux labels for host mounts #321

Merged
merged 6 commits into from
Jun 11, 2024

Conversation

Juanadelacuesta
Copy link
Member

@Juanadelacuesta Juanadelacuesta commented Feb 13, 2024

Currently when using the podman task driver plugin if the selinuxlabel = "z" option is present in the volume configuration, all the host volume mounts will be forced to use SELinux shared volume context.

There is no way for operators to use the csi-hostpath plugin or any type of mount that is not compliant with the SELinux security, or mount a private volume. This PR introduces a new configuration option that can be set per volume mount, allowing to set different SELinux context to different volumes.

There will also be a PR on nomad to read and pass the new configuration.

Closes:

#184
#185
#208

@Juanadelacuesta Juanadelacuesta marked this pull request as ready for review June 5, 2024 08:21
@Juanadelacuesta Juanadelacuesta changed the title F volume mount label Add granular control of SELinux labels for host mounts Jun 7, 2024
go.mod Outdated Show resolved Hide resolved
@Juanadelacuesta Juanadelacuesta merged commit 775c215 into main Jun 11, 2024
8 checks passed
@Juanadelacuesta Juanadelacuesta deleted the f-volume-mount-label branch June 11, 2024 07:20
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.

3 participants