Bug 831447 - SELinux is preventing /usr/bin/kmod from 'getattr' accesses on the file /usr/lib/modules/3.4.0-1.fc17.x86_64/modules.dep.bin.
SELinux is preventing /usr/bin/kmod from 'getattr' accesses on the file /usr/...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-12 21:28 EDT by Carlos Fraire
Modified: 2012-10-17 04:54 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-10-17 04:54:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Carlos Fraire 2012-06-12 21:28:53 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.0-1.fc17.x86_64
time:           Tue 12 Jun 2012 08:28:28 PM CDT

:SELinux is preventing /usr/bin/kmod from 'getattr' accesses on the file /usr/lib/modules/3.4.0-1.fc17.x86_64/modules.dep.bin.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that kmod should be allowed getattr 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.
:allow this access for now by executing:
:# grep modinfo /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:jockey_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:modules_object_t:s0
:Target Objects                /usr/lib/modules/3.4.0-1.fc17.x86_64/modules.dep.b
:                              in [ file ]
:Source                        modinfo
:Source Path                   /usr/bin/kmod
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           kmod-7-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.0-1.fc17.x86_64 #1 SMP Sun Jun 3
:                              06:35:17 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Sat 09 Jun 2012 01:37:54 PM CDT
:Last Seen                     Sat 09 Jun 2012 01:38:08 PM CDT
:Local ID                      dbaf9f5d-eb62-4341-b751-6a059ca99764
:Raw Audit Messages
:type=AVC msg=audit(1339267088.395:109): avc:  denied  { getattr } for  pid=10681 comm="modprobe" path="/usr/lib/modules/3.4.0-1.fc17.x86_64/modules.dep.bin" dev="sda7" ino=655395 scontext=system_u:system_r:jockey_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:modules_object_t:s0 tclass=file
:type=SYSCALL msg=audit(1339267088.395:109): arch=x86_64 syscall=fstat success=yes exit=0 a0=4 a1=7fffb64c7f10 a2=7fffb64c7f10 a3=20 items=0 ppid=9938 pid=10681 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:jockey_t:s0-s0:c0.c1023 key=(null)
:Hash: modinfo,jockey_t,modules_object_t,file,getattr
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Daniel Walsh 2012-06-13 17:44:01 EDT
Do you know what jockey is ding with modprobe?

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