Skip to content

refactor: wire SELinux label_volumes into runtime volume handling#50

Merged
markhedleyjones merged 2 commits intomainfrom
refactor/wire-selinux-labelling
Mar 25, 2026
Merged

refactor: wire SELinux label_volumes into runtime volume handling#50
markhedleyjones merged 2 commits intomainfrom
refactor/wire-selinux-labelling

Conversation

@markhedleyjones
Copy link
Copy Markdown
Owner

ensure_selinux_label and label_volumes existed in volumes.py but were never called from source code. User-defined runtime volumes were passed to docker/podman without SELinux :z labels, which can cause permission denied errors on SELinux-enabled systems.

Apply label_volumes to user-defined volumes in both cm run and run.sh generation. Internally-generated mounts (workspace, AWS, manifest) already have :z hardcoded.

ensure_selinux_label and label_volumes existed in volumes.py but were
never called from source code. User-defined runtime volumes were passed
to docker/podman without SELinux :z labels, which can cause permission
denied errors on SELinux-enabled systems.

Apply label_volumes to user-defined volumes in both cm run and run.sh
generation. Internally-generated mounts (workspace, AWS, manifest)
already have :z hardcoded.
@markhedleyjones markhedleyjones merged commit 4a300d6 into main Mar 25, 2026
8 checks passed
@markhedleyjones markhedleyjones deleted the refactor/wire-selinux-labelling branch March 25, 2026 10:13
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.

1 participant