Bug 1663579 - SELinux is preventing hddtemp from 'read' accesses on the blk_file nvme0n1.
Summary: SELinux is preventing hddtemp from 'read' accesses on the blk_file nvme0n1.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b75c1ad7fa9b8ced396359c3bf4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-04 22:44 UTC by Gene Snider
Modified: 2019-01-17 02:16 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.2-46.fc29
Clone Of:
Environment:
Last Closed: 2019-01-17 02:16:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gene Snider 2019-01-04 22:44:30 UTC
Description of problem:
I added /dev/nvme0n1 to the device list for hddtemp.service.
SELinux is preventing hddtemp from 'read' accesses on the blk_file nvme0n1.

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

If you believe that hddtemp should be allowed read access on the nvme0n1 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 'hddtemp' --raw | audit2allow -M my-hddtemp
# semodule -X 300 -i my-hddtemp.pp

Additional Information:
Source Context                system_u:system_r:hddtemp_t:s0
Target Context                system_u:object_r:nvme_device_t:s0
Target Objects                nvme0n1 [ blk_file ]
Source                        hddtemp
Source Path                   hddtemp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-44.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.19.13-300.fc29.x86_64 #1 SMP Sat
                              Dec 29 22:54:28 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2019-01-04 14:42:27 PST
Last Seen                     2019-01-04 14:42:27 PST
Local ID                      98f8e939-37aa-4251-8abc-36caf7b5849e

Raw Audit Messages
type=AVC msg=audit(1546641747.504:286): avc:  denied  { read } for  pid=4310 comm="hddtemp" name="nvme0n1" dev="devtmpfs" ino=20058 scontext=system_u:system_r:hddtemp_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=blk_file permissive=0


Hash: hddtemp,hddtemp_t,nvme_device_t,blk_file,read

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

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

Comment 1 Fedora Update System 2019-01-13 15:45:04 UTC
selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

Comment 2 Fedora Update System 2019-01-14 03:03:19 UTC
selinux-policy-3.14.2-46.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-6a20cfef61

Comment 3 Fedora Update System 2019-01-17 02:16:47 UTC
selinux-policy-3.14.2-46.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.