Bug 788405

Summary: SELinux is preventing /usr/bin/kmod from 'read' accesses on the fichier /usr/lib/modules/3.3.0-0.rc2.git4.1.fc17.x86_64/modules.dep.bin.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8c486ed8918e21ad6437716cd15977aca122f28d3704f524fd12f755cd4d2849
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-08 19:47:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nicolas Mailhot 2012-02-08 07:35:44 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc2.git4.1.fc17.x86_64
reason:         SELinux is preventing /usr/bin/kmod from 'read' accesses on the fichier /usr/lib/modules/3.3.0-0.rc2.git4.1.fc17.x86_64/modules.dep.bin.
time:           mer. 08 févr. 2012 08:27:21 CET

description:
:SELinux is preventing /usr/bin/kmod from 'read' accesses on the fichier /usr/lib/modules/3.3.0-0.rc2.git4.1.fc17.x86_64/modules.dep.bin.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that kmod should be allowed read access on the modules.dep.bin 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:initrc_t:s0
:Target Context                system_u:object_r:modules_dep_t:s0
:Target Objects                /usr/lib/modules/3.3.0-0.rc2.git4.1.fc17.x86_64/mo
:                              dules.dep.bin [ file ]
:Source                        modprobe
:Source Path                   /usr/bin/kmod
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           kmod-5-4.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-84.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc2.git4.1.fc17.x86_64 #1
:                              SMP Mon Feb 6 17:53:24 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    mar. 07 févr. 2012 19:44:25 CET
:Last Seen                     mer. 08 févr. 2012 08:22:17 CET
:Local ID                      8eb2f963-3987-429a-a5b4-d733a016b440
:
:Raw Audit Messages
:type=AVC msg=audit(1328685737.217:15): avc:  denied  { read } for  pid=734 comm="modprobe" name="modules.dep.bin" dev="dm-1" ino=2231929 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1328685737.217:15): avc:  denied  { open } for  pid=734 comm="modprobe" name="modules.dep.bin" dev="dm-1" ino=2231929 scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1328685737.217:15): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7fff65762820 a1=80000 a2=21982b0 a3=20 items=0 ppid=1 pid=734 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=/usr/bin/kmod subj=system_u:system_r:initrc_t:s0 key=(null)
:
:Hash: modprobe,initrc_t,modules_dep_t,file,read
:
:audit2allow
:
:#============= initrc_t ==============
:allow initrc_t modules_dep_t:file { read open };
:
:audit2allow -R
:
:#============= initrc_t ==============
:allow initrc_t modules_dep_t:file { read open };
:

Comment 1 Miroslav Grepl 2012-02-08 11:48:06 UTC
I think this is related to #787841.

Comment 2 Daniel Walsh 2012-02-08 19:47:25 UTC

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