-
Notifications
You must be signed in to change notification settings - Fork 49
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
greetd + SELinux issues #223
Comments
Some additional information on bugzilla I filed here: https://bugzilla.redhat.com/show_bug.cgi?id=2224162. I think this is worth looking into further as surely this is not a greetd specific issue? |
it looks like the issue can be reproduced in a regular fedora container with GDM: I tried doing: still the resulting binary is not correct
it is worth noting that I am not even sure why |
trying to manually set the context via
the package
|
turns out the labeling happens at deployment time inside ostree-rs-ext. Filed an issue to ask if this is a bug due to the package only shipping a binary policy and no |
We got confirmation from upstream that this is behavior is actually not intended but part of a long standing issue. It is not easy to resolve. As a workaround we can probably ship out the configuration in /etc/selinux/targeted/file_contexts - this will allow the booted system to read what the contexts should actually be. Currently working on a prototype to see if I can get selinux rebaling working inside podman. |
Turns out this is complex because SELinux is not namespaced so selinux in podman actually requires an out-of-band method of storing the correct labels. This is not implemented as of now. I have been thinking of a method in which we can perhaps pull a container, spin up a small VM to load the correct SELinux policy in the image and then trigger a relabel. It sounds possible. If so we could add this as a step post-build to fix the labeling issues. This idea was originally pointed to me by cgwalters - it may work |
I ran into the same problem with Waydroid: waydroid/waydroid#1032 |
installing Waydroid at build time causes issues with SELinux labels, see ublue-os/main#223
this issue is detailing the repeated problems we had with greetd and SELinux in the discord, don't know if this will ever be solved or if it can be solved but it's good to have it as an issue.
the issue:
greetd spits out this error when trying to setup it up with
agreety
greetd has the wrong SELinux context rules, and there's currently no way to change it
here is what the context rules are:
running:
ls -lZ /usr/bin/greetd
here's what they should be:
The build errors when trying to change the context while building the image:
again, don't know if this can or ever be fixed, but it's good to have an issue on github nonetheless
The text was updated successfully, but these errors were encountered: