Bug 209381

Summary: ifup-eth0 AVC denials when run by xend
Product: [Fedora] Fedora Reporter: Stephen Tweedie <sct>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-22 14:14:56 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:
Bug Depends On:    
Bug Blocks: 150224    

Description Stephen Tweedie 2006-10-04 22:43:14 UTC
Description of problem:
Running a xen kernel with xend results in AVC denials from ifup-eth0 trying to
write to dhclient-eth0.conf, when called from the xend scripts.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.3.18-3
xen-3.0.2-42

How reproducible:
100%

Steps to Reproduce:
1. yum install xen kernel-xen
2. boot kernel-xen
  
Actual results:
audit(1160001299.098:8): avc:  denied  { write } for  pid=3303 comm="ifup-eth"
name="dhclient-eth0.conf" dev=dm-5 ino=802990
scontext=system_u:system_r:xend_t:s0 tcontext=system_u:object_r:dhcp_etc_t:s0
tclass=file
audit(1160001299.098:9): avc:  denied  { getattr } for  pid=3303 comm="ifup-eth"
name="dhclient-eth0.conf" dev=dm-5 ino=802990
scontext=system_u:system_r:xend_t:s0 tcontext=system_u:object_r:dhcp_etc_t:s0
tclass=file
audit(1160001299.098:10): avc:  denied  { append } for  pid=3303 comm="ifup-eth"
name="dhclient-eth0.conf" dev=dm-5 ino=802990
scontext=system_u:system_r:xend_t:s0 tcontext=system_u:object_r:dhcp_etc_t:s0
tclass=file

Expected results:
No errors.

Additional info

Comment 1 Daniel Walsh 2006-10-05 13:32:21 UTC
Fixed in selinux-policy-2.3.18-4

Comment 2 Daniel Walsh 2007-08-22 14:14:56 UTC
Should be fixed in the current release