Bug 1645837

Summary: SELinux is preventing systemd-logind from 'open' accesses on the blk_file /dev/sda1.
Product: [Fedora] Fedora Reporter: bill_pachc
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: alex.bramford, devin, dwalsh, lvrabec, mgrepl, plautrba, sjbarag, speedoctor
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cb9cc2e62496a215422cae5867b399e630ed74b8a1252cb19e701710fd3b14ac;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.2-53.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-08 01:53:06 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 bill_pachc 2018-11-04 08:33:01 UTC
Description of problem:
SELinux is preventing systemd-logind from 'open' accesses on the blk_file /dev/sda1.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd-logind should be allowed open access on the sda1 blk_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'systemd-logind' --raw | audit2allow -M my-systemdlogind
# semodule -X 300 -i my-systemdlogind.pp

Additional Information:
Source Context                system_u:system_r:systemd_logind_t:s0
Target Context                system_u:object_r:fixed_disk_device_t:s0
Target Objects                /dev/sda1 [ blk_file ]
Source                        systemd-logind
Source Path                   systemd-logind
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-40.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.16-300.fc29.x86_64 #1 SMP Sat
                              Oct 20 23:24:08 UTC 2018 x86_64 x86_64
Alert Count                   4
First Seen                    2018-11-03 09:53:24 CDT
Last Seen                     2018-11-03 17:59:09 CDT
Local ID                      e3c83e4a-074a-4062-b898-5fe2faf981c5

Raw Audit Messages
type=AVC msg=audit(1541285949.351:309): avc:  denied  { open } for  pid=809 comm="systemd-logind" path="/dev/sda1" dev="devtmpfs" ino=2198 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file permissive=0


Hash: systemd-logind,systemd_logind_t,fixed_disk_device_t,blk_file,open

Version-Release number of selected component:
selinux-policy-3.14.2-40.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.18.16-300.fc29.x86_64
type:           libreport

Comment 1 Lucas 2018-11-04 12:58:57 UTC
*** Bug 1645862 has been marked as a duplicate of this bug. ***

Comment 2 sjbarag 2018-11-05 03:31:14 UTC
Description of problem:
Upgrade from F28 -> F29 with `sudo dnf install dnf-plugin-system-upgrade && sudo dnf upgrade --refresh && sudo dnf system-upgrade download --frefreshh --releasever=29 && sudo system-upgrade reboot`

Boot into Plasma on Fedora 29; note the SELinux failure.

Version-Release number of selected component:
selinux-policy-3.14.2-40.fc29.noarch

Additional info:
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.18.16-300.fc29.x86_64
type:           libreport

Comment 3 Fedora Update System 2019-04-05 17:28:03 UTC
selinux-policy-3.14.2-53.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bf377d92c7

Comment 4 Fedora Update System 2019-04-06 20:51:19 UTC
selinux-policy-3.14.2-53.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-bf377d92c7

Comment 5 Fedora Update System 2019-04-08 01:53:06 UTC
selinux-policy-3.14.2-53.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.