Bug 738978

Summary: SELinux is preventing /sbin/udevd from 'getattr' accesses on the file /lib/modules/3.0.0-1.fc16.x86_64/modules.devname.
Product: [Fedora] Fedora Reporter: Andrie P. Mulia <andriepm009>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ad4528231b749ab533c9b7e2f9e2bb0a5d4cffb6fd4f7f24221af116e1ff1f12
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-16 09:01:46 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 Andrie P. Mulia 2011-09-16 08:46:26 UTC
abrt version: 2.0.5
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.0.0-1.fc16.x86_64
reason:         SELinux is preventing /sbin/udevd from 'getattr' accesses on the file /lib/modules/3.0.0-1.fc16.x86_64/modules.devname.
time:           Fri Sep 16 15:37:32 2011

description:
:SELinux is preventing /sbin/udevd from 'getattr' accesses on the file /lib/modules/3.0.0-1.fc16.x86_64/modules.devname.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/lib/modules/3.0.0-1.fc16.x86_64/modules.devname default label should be modules_dep_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /lib/modules/3.0.0-1.fc16.x86_64/modules.devname
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that udevd should be allowed getattr access on the modules.devname 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 udevd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:udev_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:modules_object_t:s0
:Target Objects                /lib/modules/3.0.0-1.fc16.x86_64/modules.devname [
:                              file ]
:Source                        udevd
:Source Path                   /sbin/udevd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           udev-173-1.fc16
:Target RPM Packages           kernel-3.0.0-1.fc16
:Policy RPM                    selinux-policy-3.10.0-15.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.0.0-1.fc16.x86_64 #1 SMP Fri
:                              Jul 22 16:09:29 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 16 Sep 2011 02:56:48 PM WIT
:Last Seen                     Fri 16 Sep 2011 02:56:48 PM WIT
:Local ID                      65577f06-067c-4ea8-a3a9-b0c6768bf261
:
:Raw Audit Messages
:type=AVC msg=audit(1316159808.914:84): avc:  denied  { getattr } for  pid=2318 comm="udevd" path="/lib/modules/3.0.0-1.fc16.x86_64/modules.devname" dev=dm-1 ino=9333 scontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:modules_object_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1316159808.914:84): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff631d0700 a2=7fff631d0700 a3=8031 items=0 ppid=1 pid=2318 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=udevd exe=/sbin/udevd subj=system_u:system_r:udev_t:s0-s0:c0.c1023 key=(null)
:
:Hash: udevd,udev_t,modules_object_t,file,getattr
:
:audit2allow
:
:#============= udev_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow udev_t modules_object_t:file getattr;
:
:audit2allow -R
:
:#============= udev_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow udev_t modules_object_t:file getattr;
:

Comment 1 Miroslav Grepl 2011-09-16 09:01:46 UTC
Please update your system. This is fixed in the latest f16 policy.

yum update