Bug 549492

Summary: Multiple different specifications for /var/vdsm(/.*)?
Product: Red Hat Enterprise Linux 5 Reporter: Nate Straz <nstraz>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5CC: dwalsh, jturner, mmalik, ohudlick
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://rhts.redhat.com/cgi-bin/rhts/test_log.cgi?id=11428848
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 512301 Environment:
Last Closed: 2010-03-30 07:49:51 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: 512301    
Bug Blocks:    

Description Nate Straz 2009-12-21 20:21:50 UTC
+++ This bug was initially created as a clone of Bug #512301 +++

Description of problem:
It seems that selinux-policy allows /var/vdsm(/.*)? files to have two different SELinux contexts. I believe that one of the contexts should be removed.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-2.4.6-267.el5
selinux-policy-2.4.6-267.el5

How reproducible:
always

Steps to Reproduce:
1. yum -y install <package>
2. look at the end of /var/log/messages
# semanage fcontext -l | grep vdsm
/var/vdsm(/.*)?                                    all files          system_u:object_r:qemu_var_run_t:s0 
/var/vdsm(/.*)?                                    all files          system_u:object_r:virt_var_lib_t:s0 

  
Actual results: 
Jul 17 03:16:21 hp-rx1620-01 : /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/vdsm(/.*)?  (system_u:object_r:virt_var_lib_t:s0 and system_u:object_r:qemu_var_run_t:s0). 
Jul 17 03:16:21 hp-rx1620-01 : /etc/selinux/targeted/contexts/files/file_contexts: Multiple different specifications for /var/vdsm(/.*)?  (system_u:object_r:virt_var_lib_t:s0 and system_u:object_r:qemu_var_run_t:s0). 
Jul 17 03:16:44 hp-rx1620-01 yum: Installed: selinux-policy-devel-2.4.6-252.el5.noarch

Expected results:
Jul 17 03:16:44 hp-rx1620-01 yum: Installed: selinux-policy-devel-2.4.6-252.el5.noarch

Additional info:
reproducible on all architectures

Comment 1 Miroslav Grepl 2010-01-05 17:27:34 UTC
Fixed in selinux-policy-2.4.6-268.el5

Comment 5 errata-xmlrpc 2010-03-30 07:49:51 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0182.html