Bug 709054 - SELinux is preventing /sbin/dhclient from 'read' accesses on the file dhclient-br0.pid.
Summary: SELinux is preventing /sbin/dhclient from 'read' accesses on the file dhclien...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0dd3d8946fa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-30 13:31 UTC by Jeff MacDonald
Modified: 2011-06-29 16:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 13:40:29 UTC
Type: ---


Attachments (Terms of Use)

Description Jeff MacDonald 2011-05-30 13:31:20 UTC
SELinux is preventing /sbin/dhclient from 'read' accesses on the file dhclient-br0.pid.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that dhclient should be allowed read access on the dhclient-br0.pid 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 dhclient /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:dhcpc_t:s0
Target Context                unconfined_u:object_r:virt_var_run_t:s0
Target Objects                dhclient-br0.pid [ file ]
Source                        dhclient
Source Path                   /sbin/dhclient
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dhclient-4.2.0-21.P2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-91.fc14.i686 #1 SMP Tue May 3 13:36:36
                              UTC 2011 i686 i686
Alert Count                   1
First Seen                    Thu 26 May 2011 04:47:38 PM EDT
Last Seen                     Thu 26 May 2011 04:47:38 PM EDT
Local ID                      47346c7f-c753-4bba-96cd-1281e5dd040f

Raw Audit Messages
type=AVC msg=audit(1306442858.418:199): avc:  denied  { read } for  pid=7507 comm="dhclient" name="dhclient-br0.pid" dev=dm-1 ino=58641 scontext=unconfined_u:system_r:dhcpc_t:s0 tcontext=unconfined_u:object_r:virt_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1306442858.418:199): arch=i386 syscall=open success=no exit=EACCES a0=bff73f2e a1=80000 a2=1b6 a3=79241e items=0 ppid=7471 pid=7507 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=dhclient exe=/sbin/dhclient subj=unconfined_u:system_r:dhcpc_t:s0 key=(null)

Hash: dhclient,dhcpc_t,virt_var_run_t,file,read

audit2allow

#============= dhcpc_t ==============
allow dhcpc_t virt_var_run_t:file read;

audit2allow -R

#============= dhcpc_t ==============
allow dhcpc_t virt_var_run_t:file read;

Comment 1 Miroslav Grepl 2011-05-30 13:40:29 UTC
Execute

# restorecon -R -v /var/run/dhclient-br0.pid

will fix. Please reopen if this happens again. Thank you.


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