Bug 1797324
Summary: | SELinux is preventing (fwupd) from 'mounton' accesses on the directory /run/systemd/unit-root/run/motd.d. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael <michael.scheiffler> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 31 | CC: | dwalsh, grepl.miroslav, lvrabec, mario_limonciello, plautrba, rhbz, rhughes, vmojzis, zpytela |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:7a9c33049d29b7970df230e89093904df03f20a26e19c06333cdb2989cdd3382;VARIANT_ID=workstation; | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-13 15:04:52 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael
2020-02-02 16:20:04 UTC
more detailed logs, from systemd-analyze log-level debug: Successfully mounted /run/systemd/inaccessible/dir to /run/systemd/unit-root/home Applying namespace mount on /run/systemd/unit-root/proc Applying namespace mount on /run/systemd/unit-root/root Successfully mounted /run/systemd/inaccessible/dir to /run/systemd/unit-root/root Applying namespace mount on /run/systemd/unit-root/run/motd.d Followed source symlinks /run/motd.d → /run/motd.d. Failed to mount /run/motd.d to /run/systemd/unit-root/run/motd.d: Permission denied fwupd.service: Failed to set up mount namespacing: /run/systemd/unit-root/run/motd.d: Permission denied fwupd.service: Failed at step NAMESPACE spawning /usr/libexec/fwupd/fwupd: Permission denied I believe that this is because /run/motd.d is marked as pam_var_run_t, which systemd does not have mounton access to. Because of how systemd sandboxing works, it needs to mount /run/motd.d into the sandbox of fwupd (/run/systemd/unit-root/). https://github.com/fwupd/fwupd/commit/d81ea2e3fc0de9cf73a63fcd9f7360e54e03ed31 commit introducing new required access permissions for fwupd The daemon writes into a folder in the per-service systemd runtime directory, but I don't know why that's being labelled pam_var_run_t. Because selinux fails the call to set up the mount namespacing, fwupd.service fails to start and there's a 30s timeout for all clients, which includes gnome-software which is started by default on all workstation installs. Hi Richard, This permission set is granted in the current version of policy: $ rpm -q selinux-policy --changelog|more * Fri Feb 07 2020 Zdenek Pytela <zpytela> - 3.14.4-47 - Allow ipa_custodia_t create and use netlink_route_socket sockets. - Allow networkmanager_t transition to setfiles_t - Create init_create_dirs boolean to allow init create directories - Create files_create_non_security_dirs() interface Please update the selinux-policy package. Closing, feel free to reopen the bugzilla if the issue persists. |