Bug 2084077
Summary: | SELinux prevents portablectl detach | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sam Thursfield <ssssam> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 38 | CC: | dwalsh, fedoraproject, filbranden, flepied, grepl.miroslav, lnykryn, lvrabec, mmalik, msekleta, omosnace, pkoncity, ryncsn, ssahani, s, systemd-maint, vmojzis, yuwatana, zbyszek, zpytela |
Target Milestone: | --- | Keywords: | Reopened, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-12-13 17:58:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sam Thursfield
2022-05-11 10:32:07 UTC
I would like you to test a workaround. My assumptions are: 1) SELinux label on the systemd-portabled file was not changed: # ls -Z /usr/lib/systemd/systemd-portabled system_u:object_r:init_exec_t:s0 /usr/lib/systemd/systemd-portabled # 2) After starting the systemd-portabled service, the systemd-portabled process runs as init_t: system_u:system_r:init_t:s0 root 1448 1 0 05:22 ? 00:00:00 /usr/lib/systemd/systemd-portabled The workaround consists of the following commands: # chcon -t usr_t /usr/lib/systemd/systemd-portabled # systemctl restart systemd-portabled Purpose of the workaround is to run the systemd-portabled service as unconfined_service_t (instead of init_t) and see if that helps. Does the portablectl command mentioned above work now? Thank you. Why a workaround? Because SELinux policy currently does not provide any special policy for the systemd-portabled program. Hi Milos, Thanks for the workaround, I just tested this and the commands work without error now. There are plans to confined the service, but probably only for F37. This message is a reminder that Fedora Linux 35 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13. 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 '35'. 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. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 35 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. Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13. Fedora Linux 35 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed. This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38. |