-
Notifications
You must be signed in to change notification settings - Fork 199
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
when selinux:false, rpm-ostree still looks for selinux policies and raises error #3261
Comments
Hi and welcome! rpm-ostree/src/app/rpmostree-compose-builtin-tree.cxx Lines 454 to 458 in 06b7004
But overall I think those
|
I think this is a dup of #971 It makes sense to support, just needs a bit of investigation and care - and a new entry to the CI flow. As I commented in the previous issue, supporting rpm-ostree in-container - which is now a high priority due to https://github.com/coreos/enhancements/blob/main/os/coreos-layering.md - would also motivate this. |
Short-term, it may be easier to leave it on during the compose but configure the OS to permissive mode. |
I met the same issue when I try to compose an image from CentOS Stream 9 packages: Host is Fedora 35 with rpm-ostree-2022.5-1.fc35.x86_64 and with SELinux set to permissive. |
I met this issue aw well. |
me too |
Host system details
Fedora 33, rpm-ostree executed by fedora coreos assembler under its docker image (quay.io/coreos-assembler/coreos-assembler)
We would like to build a minimal os which excludes SELinux function. Our project is based on Fedora CoreOS, therefore, we use fedora coreos assembler. According to documentation, we set selinux:false in TREEFILE. However, while coreos assembler executes this command:
The error
SELinux enabled, but no policy found
is raised:The expected behavior is that while setting
selinux:false
rpm-ostree don't look for any SELinux policies.By looking into the code for days, we found that this patch solves this problem, but it is not likely to solve the problem fundamentally.
In other words, in
src/libpriv/rpmostree-core.cxx:1363
:sepolicy
shoule be NULL when selinux set to false in TREEFILE, however, it has some value. We are frustrated when looking for the specific place where sepolicy was set.The text was updated successfully, but these errors were encountered: