Bug 738978 - SELinux is preventing /sbin/udevd from 'getattr' accesses on the file /lib/modules/3.0.0-1.fc16.x86_64/modules.devname.
Summary: SELinux is preventing /sbin/udevd from 'getattr' accesses on the file /lib/mo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ad4528231b749ab533c9b7e2f9e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-16 08:46 UTC by Andrie P. Mulia
Modified: 2011-09-16 09:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-16 09:01:46 UTC


Attachments (Terms of Use)

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


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