Bug 722505 - SELinux is preventing /sbin/modprobe from 'execute' accesses on the file /sbin/modprobe.
Summary: SELinux is preventing /sbin/modprobe from 'execute' accesses on the file /sbi...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6dba0cc3d82...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-15 14:43 UTC by Jason D. Clinton
Modified: 2011-07-15 17:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-15 17:45:31 UTC
Type: ---


Attachments (Terms of Use)

Description Jason D. Clinton 2011-07-15 14:43:11 UTC
SELinux is preventing /sbin/modprobe from 'execute' accesses on the file /sbin/modprobe.

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

If you believe that modprobe should be allowed execute access on the modprobe 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:virtd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:insmod_exec_t:s0
Target Objects                /sbin/modprobe [ file ]
Source                        modprobe
Source Path                   /sbin/modprobe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           module-init-tools-3.16-1.fc16
Target RPM Packages           module-init-tools-3.16-1.fc16
Policy RPM                    selinux-policy-3.10.0-3.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              3.0-0.rc7.git0.1.fc16.x86_64 #1 SMP Tue Jul 12
                              12:57:40 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 15 Jul 2011 08:52:43 AM CDT
Last Seen                     Fri 15 Jul 2011 08:52:43 AM CDT
Local ID                      bc3636ec-969c-4dfc-9896-a918b1d69a3d

Raw Audit Messages
type=AVC msg=audit(1310737963.611:43): avc:  denied  { execute } for  pid=1358 comm="ip6tables" name="modprobe" dev=dm-1 ino=920875 scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file


type=AVC msg=audit(1310737963.611:43): avc:  denied  { read open } for  pid=1358 comm="ip6tables" name="modprobe" dev=dm-1 ino=920875 scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file


type=AVC msg=audit(1310737963.611:43): avc:  denied  { execute_no_trans } for  pid=1358 comm="ip6tables" path="/sbin/modprobe" dev=dm-1 ino=920875 scontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1310737963.611:43): arch=x86_64 syscall=execve success=yes exit=0 a0=1042010 a1=7fff9e1918e0 a2=7fff9e191ca0 a3=7fff9e191650 items=0 ppid=1356 pid=1358 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=modprobe exe=/sbin/modprobe subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 key=(null)

Hash: modprobe,virtd_t,insmod_exec_t,file,execute

audit2allow

#============= virtd_t ==============
allow virtd_t insmod_exec_t:file { read execute open execute_no_trans };

audit2allow -R

#============= virtd_t ==============
allow virtd_t insmod_exec_t:file { read execute open execute_no_trans };

Comment 1 Daniel Walsh 2011-07-15 17:45:31 UTC
Fixed in selinux-policy-3.10.0-4.fc16


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