Add SELinux relabel option to bind mount volumes in local composer co…#11944
Merged
mekarpeles merged 3 commits intoMay 5, 2026
internetarchive:masterinternetarchive/openlibrary:masterfrom
aczietlow:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeaczietlow/openlibrary:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeCopy head branch name to clipboard
Merged
Add SELinux relabel option to bind mount volumes in local composer co…#11944mekarpeles merged 3 commits intointernetarchive:masterinternetarchive/openlibrary:masterfrom aczietlow:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeaczietlow/openlibrary:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeCopy head branch name to clipboard
mekarpeles merged 3 commits into
internetarchive:masterinternetarchive/openlibrary:masterfrom
aczietlow:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeaczietlow/openlibrary:11874/hotfix/add-selinux-relabel-bind-mount-option-on-selinux-composeCopy head branch name to clipboard
Conversation
for more information, see https://pre-commit.ci
3 tasks
…t-option-on-selinux-compose
shoaib-inamdar
pushed a commit
to shoaib-inamdar/openlibrary
that referenced
this pull request
May 6, 2026
internetarchive#11944) * Add SELinux relabel option to bind mount volumes in local composer config
Sadashii
pushed a commit
to Sadashii/openlibrary
that referenced
this pull request
May 11, 2026
internetarchive#11944) * Add SELinux relabel option to bind mount volumes in local composer config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11874
Fixes podman-compose working with SELinux enabled and enforced. This allows the application to build successfully and run on local systems with SELinux and podman-compose.
Technical
I added SELinux label options to local volume mounts in
compose.selinux.yaml. This file can be applied to override the volume mounts, to add thezlabels on Systems with SELinux enabled.I'm actually unsure if this same issue would exist with docker. I've confirmed it is present with podman. I can try to test that if it's needed.
Testing
podman-compose -f compose.yaml -f compose.override.yaml -f compose.selinux.yaml up -dStakeholders
@mekarpeles