Bug 1046854 - SELinux is preventing /usr/bin/kmod from 'read' accesses on the file /etc/modprobe.d/blacklist-nvidia.conf.
Summary: SELinux is preventing /usr/bin/kmod from 'read' accesses on the file /etc/mod...
Keywords:
Status: CLOSED DUPLICATE of bug 1046858
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:663c165208086954d852356e8c5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-27 07:05 UTC by Sayak Sarkar
Modified: 2014-01-06 14:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-06 14:31:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sayak Sarkar 2013-12-27 07:05:02 UTC
Description of problem:
SELinux is preventing /usr/bin/kmod from 'read' accesses on the file /etc/modprobe.d/blacklist-nvidia.conf.

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

If you believe that kmod should be allowed read access on the blacklist-nvidia.conf 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:
# grep modprobe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:bumblebee_t:s0
Target Context                system_u:object_r:modules_conf_t:s0
Target Objects                /etc/modprobe.d/blacklist-nvidia.conf [ file ]
Source                        modprobe
Source Path                   /usr/bin/kmod
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kmod-15-1.fc20.x86_64
Target RPM Packages           bumblebee-nvidia-331.20-1.fc20.x86_64
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   9
First Seen                    2013-12-19 18:30:36 IST
Last Seen                     2013-12-27 12:28:33 IST
Local ID                      e5a555b6-f9ee-4fe7-92cf-6212e8f3cc7f

Raw Audit Messages
type=AVC msg=audit(1388127513.843:586): avc:  denied  { read } for  pid=6067 comm="modprobe" name="blacklist-nvidia.conf" dev="dm-1" ino=1453947 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:modules_conf_t:s0 tclass=file


type=AVC msg=audit(1388127513.843:586): avc:  denied  { open } for  pid=6067 comm="modprobe" path="/etc/modprobe.d/blacklist-nvidia.conf" dev="dm-1" ino=1453947 scontext=system_u:system_r:bumblebee_t:s0 tcontext=system_u:object_r:modules_conf_t:s0 tclass=file


type=SYSCALL msg=audit(1388127513.843:586): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7fff89b1abf0 a1=80000 a2=7fff89b1ac15 a3=15 items=0 ppid=6054 pid=6067 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=modprobe exe=/usr/bin/kmod subj=system_u:system_r:bumblebee_t:s0 key=(null)

Hash: modprobe,bumblebee_t,modules_conf_t,file,read

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-01-06 14:31:40 UTC

*** This bug has been marked as a duplicate of bug 1046858 ***


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