Bug 1380951 - SELinux is preventing gnome-shell from 'getattr' accesses on the blk_file /dev/nvme0n1p1.
Summary: SELinux is preventing gnome-shell from 'getattr' accesses on the blk_file /de...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2c4690c8d22b2f68d3f7f48a81e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-01 21:10 UTC by Volker Sobek
Modified: 2016-11-21 03:11 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-219.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 19:34:23 UTC
Type: ---


Attachments (Terms of Use)

Description Volker Sobek 2016-10-01 21:10:00 UTC
Description of problem:
Looks like this prevents the NVMe SSD from being properly detected by gvfs or storaged (instead partitions on it show up as removable devices in nautils).
SELinux is preventing gnome-shell from 'getattr' accesses on the blk_file /dev/nvme0n1p1.

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

If sie denken, dass es gnome-shell standardmäßig erlaubt sein sollte, getattr Zugriff auf nvme0n1p1 blk_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:nvme_device_t:s0
Target Objects                /dev/nvme0n1p1 [ blk_file ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-215.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc8.git0.1.fc25.x86_64 #1
                              SMP Mon Sep 26 17:12:24 UTC 2016 x86_64 x86_64
Alert Count                   53
First Seen                    2016-09-24 15:32:16 CEST
Last Seen                     2016-10-01 22:47:54 CEST
Local ID                      bfad789c-d969-4d55-b84b-6e9716cda38d

Raw Audit Messages
type=AVC msg=audit(1475354874.983:180): avc:  denied  { getattr } for  pid=1469 comm="gnome-shell" path="/dev/nvme0n1p1" dev="devtmpfs" ino=10619 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nvme_device_t:s0 tclass=blk_file permissive=0


Hash: gnome-shell,xdm_t,nvme_device_t,blk_file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-215.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc8.git0.1.fc25.x86_64
type:           libreport

Comment 1 Volker Sobek 2016-10-07 17:39:30 UTC
I can confirm the issue is fixed with updating to:
selinux-policy-3.13.1-218.fc25.noarch
selinux-policy-targeted-3.13.1-218.fc25.noarch

Comment 2 Fedora Update System 2016-10-12 01:53:38 UTC
selinux-policy-3.13.1-219.fc25 has been pushed to the Fedora 25 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-2016-552be55062

Comment 3 Fedora Update System 2016-10-14 19:34:23 UTC
selinux-policy-3.13.1-219.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Nate Graham 2016-11-21 03:11:34 UTC
Description of problem:
I got this notification while tracker-miner-fs was chewing away at 100% CPU right after I copied a bunch of files from my old computer to this new one.

Version-Release number of selected component:
selinux-policy-3.13.1-216.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64
type:           libreport


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