Bug 923471

Summary: SELinux is preventing /usr/bin/bash from 'read' accesses on the directory dhclient.
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0dd4ecda0a9048eeac8f25a824e491a6b4936f98bb09ec5d6dc65c3f6c61bea3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-20 00:56:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 834090    

Description Adam Williamson 2013-03-19 23:47:02 UTC
Description of problem:
Occurs on boot of a Fedora 19 live image built from current repositories.
SELinux is preventing /usr/bin/bash from 'read' accesses on the directory dhclient.

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

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

Additional Information:
Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:dhcpc_state_t:s0
Target Objects                dhclient [ dir ]
Source                        chrony-helper
Source Path                   /usr/bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.2.45-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-22.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc3.git0.3.fc19.x86_64 #1
                              SMP Mon Mar 18 21:39:31 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-19 19:40:43 EDT
Last Seen                     2013-03-19 19:40:43 EDT
Local ID                      a908fb63-d2e8-487f-9596-70a43d65007f

Raw Audit Messages
type=AVC msg=audit(1363736443.794:422): avc:  denied  { read } for  pid=2417 comm="chrony-helper" name="dhclient" dev="dm-0" ino=29247 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:dhcpc_state_t:s0 tclass=dir

type=SYSCALL msg=audit(1363736443.794:422): arch=x86_64 syscall=openat success=yes exit=ESRCH a0=ffffffffffffff9c a1=12656e0 a2=90800 a3=0 items=0 ppid=2399 pid=2417 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=chrony-helper exe=/usr/bin/bash subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)

Hash: chrony-helper,system_dbusd_t,dhcpc_state_t,dir,read


#============= system_dbusd_t ==============
allow system_dbusd_t dhcpc_state_t:dir read;

audit2allow -R
require {
	type system_dbusd_t;

#============= system_dbusd_t ==============

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc3.git0.3.fc19.x86_64
type:           libreport

Comment 1 Adam Williamson 2013-03-19 23:49:11 UTC
Final blocker: "In most cases, there must be no SELinux 'AVC: denied' messages or abrt crash notifications on initial boot and subsequent login"

Comment 2 Daniel Walsh 2013-03-20 00:56:27 UTC

*** This bug has been marked as a duplicate of bug 923497 ***