This is not really a selinux-polciy bug, although it will probably require selinux-policy changes. During my recent work on plymouth (see bug 1945585) it has become clear to me that plymouthd does not run under the system_u:system_r:plymouthd_t:s0 context when it is started from the initrd; and by default Fedora always uses an initrd so that means that when plymouthd is running to display the boot-splash it is never running as system_u:system_r:plymouthd_t:s0, but instead it is running in the default context. This is understandable because the selinux-policy is only loaded once the rootfs has been mounted. plymouth already gets a message from a special service once the rootfs has been mounted read-write, so that it can e.g. start writing debug logs there if debugging is enabled. I was thinking that given that there is a whole selinux-policy for plymouth, it would be good if plymouth would transition to the system_u:system_r:plymouthd_t:s0 context once the selinux policy has been loaded. So some questions for the selinux people: 1. Do you agree that doing such a transition would be a good idea ? 2. Are you aware of other daemons doing something similar and can you point me to some example code?
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35.
So the plymouthd started from initramfs runs with system_u:system_r:kernel_t:s0. I think it's a good idea to do the transition as soon as possible. There are basically 2 ways how to do it: 1. re-exec - plymouthd would need to re-exec itself after a policy a loaded. In this case the transition would be handled automatically by a kernel. afaik systemd does re-exec after switch-root when the policy is loaded - this would be preferred. 2. plymouthd could transition to the new domain using setcon()
Switching the component based on #c2. Let us know if the agreed change needs to be backed by a selinux-policy rule, too.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle. Changing version to 37.
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
This is still relevant / still needs to be fixed, changing version to rawhide.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.