View Issue Details

IDProjectCategoryView StatusLast Update
0015875CentOS-7selinux-policypublic2019-02-26 17:20
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0015875: SELinux is preventing /usr/bin/nvidia-modprobe from 'write' accesses on the directory /dev.
DescriptionDescription of problem:
SELinux is preventing /usr/bin/nvidia-modprobe from 'write' accesses on the directory /dev.

***** Plugin restorecon_source (99.5 confidence) suggests *****************

If you want to fix the label.
/usr/bin/nvidia-modprobe default label should be xserver_exec_t.
Then you can run restorecon.
# /sbin/restorecon -v /usr/bin/nvidia-modprobe

***** Plugin catchall (1.49 confidence) suggests **************************

If you believe that nvidia-modprobe should be allowed write access on the dev directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'nvidia-modprobe' --raw | audit2allow -M my-nvidiamodprobe
# semodule -i my-nvidiamodprobe.pp

Additional Information:
Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context system_u:object_r:device_t:s0
Target Objects /dev [ dir ]
Source nvidia-modprobe
Source Path /usr/bin/nvidia-modprobe
Port <Unknown>
Host (removed)
Source RPM Packages
Target RPM Packages filesystem-3.2-25.el7.x86_64
Policy RPM selinux-policy-3.13.1-229.el7_6.9.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-957.5.1.el7.x86_64 #1 SMP
                              Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64
Alert Count 14
First Seen 2019-02-20 13:09:49 MSK
Last Seen 2019-02-26 18:52:07 MSK
Local ID 85c54ccc-0592-4a48-a985-f54fba393b6e

Raw Audit Messages
type=AVC msg=audit(1551196327.434:135): avc: denied { write } for pid=5637 comm="nvidia-modprobe" name="/" dev="devtmpfs" ino=1025 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=dir permissive=0

type=SYSCALL msg=audit(1551196327.434:135): arch=x86_64 syscall=mknod success=no exit=EACCES a0=7ffe8a8a8220 a1=21b6 a2=c3ff a3=7ffe8a8a7b20 items=0 ppid=5556 pid=5637 auid=4294967295 uid=42 gid=42 euid=0 suid=0 fsuid=0 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=nvidia-modprobe exe=/usr/bin/nvidia-modprobe subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: nvidia-modprobe,xdm_t,device_t,dir,write

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 3.10.0-957.5.1.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-02-26 17:20 whosuka New Issue