View Issue Details

IDProjectCategoryView StatusLast Update
0016923CentOS-7selinux-policypublic2020-01-14 12:28
Reportergrahama 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0016923: SELinux is preventing /usr/sbin/smartd from 'open' accesses on the chr_file /dev/nvme0.
DescriptionDescription of problem:
SELinux is preventing /usr/sbin/smartd from 'open' accesses on the chr_file /dev/nvme0.

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

If you believe that smartd should be allowed open access on the nvme0 chr_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 'smartd' --raw | audit2allow -M my-smartd
# semodule -i my-smartd.pp

Additional Information:
Source Context system_u:system_r:fsdaemon_t:s0
Target Context system_u:object_r:nvme_device_t:s0
Target Objects /dev/nvme0 [ chr_file ]
Source smartd
Source Path /usr/sbin/smartd
Port <Unknown>
Host (removed)
Source RPM Packages smartmontools-7.0-1.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-252.el7_7.6.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-1062.9.1.el7.x86_64 #1 SMP
                              Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64
Alert Count 3
First Seen 2020-01-07 15:26:14 CET
Last Seen 2020-01-13 10:25:12 CET
Local ID 61cf8807-857e-4bc1-bc39-f3b2af9f3d78

Raw Audit Messages
type=AVC msg=audit(1578907512.171:12): avc: denied { open } for pid=1523 comm="smartd" path="/dev/nvme0" dev="devtmpfs" ino=9173 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:nvme_device_t:s0 tclass=chr_file permissive=0


type=SYSCALL msg=audit(1578907512.171:12): arch=x86_64 syscall=open success=no exit=EACCES a0=561a7c973bc8 a1=800 a2=0 a3=561a7b3cfdd0 items=0 ppid=1 pid=1523 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=smartd exe=/usr/sbin/smartd subj=system_u:system_r:fsdaemon_t:s0 key=(null)

Hash: smartd,fsdaemon_t,nvme_device_t,chr_file,open

Version-Release number of selected component:
selinux-policy-3.13.1-252.el7_7.6.noarch
Additional Informationreporter: libreport-2.1.11.1
hashmarkername: setroubleshoot
kernel: 3.10.0-1062.9.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.
abrt_hash9a111ee8d49c2d5f438634c1af0d83c08c2d7ee419bef9d5a2e5c7fa0e349daf
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-01-14 12:28 grahama New Issue