Bug 1646185 - SELinux is preventing systemd-logind from 'open' accesses on the blk_file /dev/nvme0n1p1.
Summary: SELinux is preventing systemd-logind from 'open' accesses on the blk_file /de...
Keywords:
Status: CLOSED DUPLICATE of bug 1645278
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:f1b492623fab589f65a6820fcaf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-05 10:40 UTC by jasuarez
Modified: 2018-11-06 10:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-06 10:24:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description jasuarez 2018-11-05 10:40:30 UTC
Description of problem:
Happens after log in desktop.
SELinux is preventing systemd-logind from 'open' accesses on the blk_file /dev/nvme0n1p1.

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

If you believe that systemd-logind should be allowed open access on the nvme0n1p1 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:nvme_device_t:s0
Target Objects                /dev/nvme0n1p1 [ 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                   2
First Seen                    2018-11-05 11:39:26 CET
Last Seen                     2018-11-05 11:39:26 CET
Local ID                      7b01c85c-2469-428b-8ec5-cf68c8ad7695

Raw Audit Messages
type=AVC msg=audit(1541414366.87:576): avc:  denied  { open } for  pid=1675 comm="systemd-logind" path="/dev/nvme0n1p1" dev="devtmpfs" ino=17683 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=blk_file permissive=0


Hash: systemd-logind,systemd_logind_t,nvme_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 Lukas Vrabec 2018-11-06 10:24:55 UTC

*** This bug has been marked as a duplicate of bug 1645278 ***


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