Bug 485936

Summary: denied search comm="dhclient-script" name="network-scripts" scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-17 16:54:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2009-02-17 15:49:17 UTC
Description of problem:

Preventing old style /etc/init.d/network from bringing up the network.  Running in permissive mode shows:

type=1400 audit(1234885409.383:3): avc:  denied  { search } for  pid=1890 comm="dhclient-script" name="network-scripts" dev=dm-0 ino=28 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=dir
type=1400 audit(1234885409.439:4): avc:  denied  { getattr } for  pid=1894 comm="dhclient-script" path="/etc/sysconfig/network-scripts" dev=dm-0 ino=28 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=dir
type=1400 audit(1234885413.184:5): avc:  denied  { relabelfrom } for  pid=1933 comm="mv" name="resolv.conf.predhclient.eth0" dev=dm-2 ino=71 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=file
type=1400 audit(1234885413.184:6): avc:  denied  { relabelto } for  pid=1933 comm="mv" name="resolv.conf.predhclient.eth0" dev=dm-2 ino=71 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=file


Version-Release number of selected component (if applicable):
selinux-policy-3.6.6-1.fc11.noarch

Comment 1 Daniel Walsh 2009-02-17 16:54:31 UTC
Fixed in selinux-policy-3.6.6-3.fc11.noarch

Comment 2 Orion Poplawski 2009-02-18 16:34:23 UTC
I do still see:

type=1400 audit(1234974481.199:4): avc:  denied  { relabelfrom } for  pid=1932 comm="mv" name="resolv.conf.predhclient.eth0" dev=dm-2 ino=71 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=file

Though not appearing to cause any problems.

[root@machias ~]# ls -lZ /etc/resolv*
-rw-r--r--  root root system_u:object_r:net_conf_t:s0  /etc/resolv.conf