Bug 1845594
Summary: | SELinux is preventing systemd-logind from 'read' accesses on the file swapfile. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | bober <sebastian.saletnik> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 32 | CC: | dwalsh, eric.buscher, grepl.miroslav, lvrabec, mmalik, plautrba, vmojzis, zpytela |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | abrt_hash:ac5c9102cf9c71479175349b9495822b8d26731382cf4b8e30a64ed00600ef58;VARIANT_ID=workstation; | ||
Fixed In Version: | selinux-policy-3.14.5-45.fc32 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-25 01:42:26 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: | |||
Bug Depends On: | 1812955 | ||
Bug Blocks: |
Description
bober
2020-06-09 15:21:03 UTC
Zdenek, After discussion with systemd team, we should allow it, can you please prepare patches? Thanks, Lukas. To avoid the actual hibernation, I added the PrivateDevices=yes line to the /usr/lib/systemd/system/systemd-hibernate.service file and called "systemctl daemon-reload". I've submitted a Fedora PR to address the issue: https://github.com/fedora-selinux/selinux-policy/pull/452 Similar problem has been detected: 1. Install sddm 2. Create a swapfile 3. Add the swapfile to fstab 4. Reboot 5. Login hashmarkername: setroubleshoot kernel: 5.8.12-200.fc32.x86_64 package: selinux-policy-targeted-3.14.5-43.fc32.noarch reason: SELinux is preventing systemd-logind from 'read' accesses on the file swapfile. type: libreport FEDORA-2020-77b49aa207 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-77b49aa207 FEDORA-2020-77b49aa207 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-77b49aa207` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-77b49aa207 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-77b49aa207 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |