-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: Don't try to perform labeling if SELinux is disabled
The default for container execution is that `/sys/fs/selinux` is not mounted, and the libselinux library function `is_selinux_enabled` should be used to dynamically check if the system should attempt to perform SELinux labeling. This is how it's done by rpm, ostree, and systemd for example. But this code unconditionally tries to label if it finds a policy, which breaks in an obscure corner case when executed inside a container that includes policy files (e.g. fedora/rhel-bootc) but when we're not using overlayfs for the backend (with BUILDAH_BACKEND=vfs).
- Loading branch information
1 parent
8752006
commit 5a838d7
Showing
1 changed file
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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