Bug 611908

Summary: /etc/xen/auto mislabel
Product: Red Hat Enterprise Linux 5 Reporter: Mike McGrath <mmcgrath>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: lmacken
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-13 07:28:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Mike McGrath 2010-07-06 20:18:36 UTC
Description of problem:

/etc/xen/auto has type virt_etc_rw_t but should be virt_etc_t.  Upon reboot, the denial message is:

node= type=AVC msg=audit(1278446010.342:76): avc:  denied  { read } for  pid=5251 comm="xm" name="value2" dev=sda2 ino=624079 scontext=system_u:system_r:xm_t:s0 tcontext=user_u:object_r:virt_etc_
rw_t:s0 tclass=lnk_file
node= type=SYSCALL msg=audit(1278446010.342:76): arch=c000003e syscall=4 success=no exit=-13 a0=efb0690 a1=7fff9f1c2fe0 a2=7fff9f1c2fe0 a3=0 items=1 ppid=5157 pid=5251 auid=4294967295 uid=0 gid=0
 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="xm" exe="/usr/bin/python" subj=system_u:system_r:xm_t:s0 key=(null)
node= type=CWD msg=audit(1278446010.342:76):  cwd="/"
node= type=PATH msg=audit(1278446010.342:76): item=0 name="/etc/xen/auto/value2"

Version-Release number of selected component (if applicable):


How reproducible:

every time.

Steps to Reproduce:
1. create guest
2. ln -s /etc/xen/guest /etc/xen/auto/guest *or* virsh autostart guest
Actual results:

Guests do not come up.

Expected results:

Guests come up.

Additional info:

Changing the labels to virt_etc_t fixes this.

Comment 1 Daniel Walsh 2010-07-12 19:28:13 UTC

Allow the reading of the virt_etc_rw_t:lnk_file

Comment 2 Miroslav Grepl 2010-07-13 07:28:36 UTC

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