Bug 789664 - SELinux is preventing /sbin/dhclient from 'getattr' accesses on the None /run/nm-dhclient-wlan0.conf.
Summary: SELinux is preventing /sbin/dhclient from 'getattr' accesses on the None /run...
Keywords:
Status: CLOSED WORKSFORME
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:2fc95546731a3c80ac4c9eccb33...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-12 07:34 UTC by Markus
Modified: 2012-02-17 14:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-17 14:33:51 UTC
Type: ---


Attachments (Terms of Use)

Description Markus 2012-02-12 07:34:00 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.x86_64
reason:         SELinux is preventing /sbin/dhclient from 'getattr' accesses on the None /run/nm-dhclient-wlan0.conf.
time:           Sun 12 Feb 2012 06:33:33 PM EST

description:
:SELinux is preventing /sbin/dhclient from 'getattr' accesses on the None /run/nm-dhclient-wlan0.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dhclient should be allowed getattr access on the nm-dhclient-wlan0.conf <Unknown> 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 dhclient /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:var_run_t:s0
:Target Objects                /run/nm-dhclient-wlan0.conf [ None ]
:Source                        dhclient
:Source Path                   /sbin/dhclient
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           dhclient-4.2.3-6.P2.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.x86_64 #1 SMP
:                              Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Sun 12 Feb 2012 12:19:33 PM EST
:Last Seen                     Sun 12 Feb 2012 06:24:18 PM EST
:Local ID                      e59de35f-d540-42d6-b58c-18a3415ac58b
:
:Raw Audit Messages
:type=AVC msg=audit(1329031458.359:1858): avc:  denied  { getattr } for  pid=9344 comm="dhclient" path="/run/nm-dhclient-wlan0.conf" dev=tmpfs ino=12161342 scontext=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1329031458.359:1858): arch=c000003e syscall=5 success=no exit=-13 a0=4 a1=7fff96433450 a2=7fff96433450 a3=0 items=0 ppid=9335 pid=9344 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=69 comm="dhclient" exe="/sbin/dhclient" subj=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: dhclient,dhcpc_t,var_run_t,None,getattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-14 21:28:14 UTC
Any idea how nm-dhclient-wlan0.conf got created?
  Did you run some commands by hand that could have created this file.  If you run restorecon -R -v /run 

It will fix the label.

Comment 2 Markus 2012-02-17 12:32:09 UTC
No idea how the file got created.

I have not been able to reproduce this bug since last system reboot, should this be marked as closed?

Comment 3 Daniel Walsh 2012-02-17 14:33:51 UTC
Yes reopen if it happens again.


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