Bug 1614236

Summary: Selinux is preventing gnome-disk-utility from benchmarking the disk
Product: Red Hat Enterprise Linux 7 Reporter: Martin Krajnak <mkrajnak>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: lvrabec, mgrepl, mmalik, plautrba, ssekidde, vmojzis
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:08:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Krajnak 2018-08-09 08:40:15 UTC
Description of problem:
Selinux is preventing gnome-disk-utility from benchmarking the disk

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-214.el7.noarch
selinux-policy-targeted-3.13.1-214.el7.noarch

How reproducible:
always

Steps to Reproduce:
1.Start gnome-disk-utility
2.Select suitable disk
3.Click on wheel icon and select benchmark
4.Start Benchmark x2, 
5.Authenticate user (type password)

Actual results:
SELinux is preventing /usr/bin/dbus-daemon from read access on the blk_file /dev/nvme0n1p1.

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

If you believe that dbus-daemon should be allowed read 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 'dbus-daemon' --raw | audit2allow -M my-dbusdaemon
# semodule -i my-dbusdaemon.pp

Additional Information:
Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:nvme_device_t:s0
Target Objects                /dev/nvme0n1p1 [ blk_file ]
Source                        dbus-daemon
Source Path                   /usr/bin/dbus-daemon
Port                          <Unknown>
Host                          t470s
Source RPM Packages           dbus-1.10.24-11.el7.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-214.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     t470s
Platform                      Linux t470s 3.10.0-931.el7.x86_64 #1 SMP Tue Jul
                              31 17:55:24 EDT 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-08-09 10:34:08 CEST
Last Seen                     2018-08-09 10:34:08 CEST
Local ID                      6cc3a281-4aa8-4faa-8820-7ba824592869

Raw Audit Messages
type=AVC msg=audit(1533803648.653:15345): avc:  denied  { read } for  pid=761 comm="dbus-daemon" path="/dev/nvme0n1p1" dev="devtmpfs" ino=10760 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nvme_device_t:s0 tclass=blk_file permissive=0


type=SYSCALL msg=audit(1533803648.653:15345): arch=x86_64 syscall=recvmsg success=yes exit=ENOSTR a0=11 a1=7fff30f96080 a2=40000000 a3=0 items=0 ppid=1 pid=761 auid=4294967295 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) ses=4294967295 comm=dbus-daemon exe=/usr/bin/dbus-daemon subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)

Hash: dbus-daemon,system_dbusd_t,nvme_device_t,blk_file,read


Expected results:
Benchmarking should start

Comment 5 errata-xmlrpc 2018-10-30 10:08:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3111