Bug 1645837 - SELinux is preventing systemd-logind from 'open' accesses on the blk_file /dev/sda1.
Summary: SELinux is preventing systemd-logind from 'open' accesses on the blk_file /de...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cb9cc2e62496a215422cae5867b...
: 1645862 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-04 08:33 UTC by bill_pachc
Modified: 2019-04-08 01:53 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.14.2-53.fc29
Clone Of:
Environment:
Last Closed: 2019-04-08 01:53:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.