Skip to content

Conversation

@tulilirockz
Copy link
Member

@tulilirockz tulilirockz commented Aug 12, 2025

This is usually required on systems that use SELinux due to labeling issues. :Z makes it so an unique SELinux label gets written to all the files under (mount) so that only the container running can access it, :z is the same thing but if you want to share directories between containers. This should resolve an issue where running the shellcheck hook breaks on Fedora/SELinux-enabled systems and should be a no-op for non SELinux-enabled systems/MacOS

I haven't been able to test this as I don't have any virtual machine with SELinux enabled, but definitely does not break anything on my end on MacOS - would like some more testing from other people, though!

… suppored

Signed-off-by: Arthur Exaltação <arthur.exaltacao@chainguard.dev>
Copy link
Contributor

@dannf dannf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@dannf dannf merged commit 626b499 into chainguard-dev:main Aug 12, 2025
3 checks passed
@tulilirockz tulilirockz changed the title shellcheck_run_steps: use :Z volume mount for SELinux relabeling if suppored shellcheck_run_steps: use :Z volume mount for SELinux relabeling if supported Aug 12, 2025
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.

2 participants