Bug 1351382

Summary: /etc/sysconfig/libvirtd should not be labeled bin_t
Product: Red Hat Enterprise Linux 7 Reporter: Garrett Holmstrom <gholms>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: lvrabec, mdshaonimran, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-92.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 02:33:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Garrett Holmstrom 2016-06-29 23:32:40 UTC
Description of problem:
For some reason /etc/sysconfig/libvirtd is labeled bin_t rather than etc_t.  It does not have the executable bit set, so that doesn't make much sense.  As a result of this bug I have to allow things that normally write to etc_t files to also write to bin_t files.


Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-60.el7_2.7.noarch


How reproducible:
Always


Steps to Reproduce:
1. matchpathcon /etc/sysconfig/libvirtd


Actual results:
/etc/sysconfig/libvirtd	system_u:object_r:bin_t:s0


Expected results:
/etc/sysconfig/libvirtd	system_u:object_r:etc_t:s0


Additional info:
I submitted a patch for this upstream here:  http://oss.tresys.com/pipermail/refpolicy/2016-June/008036.html

Comment 15 errata-xmlrpc 2016-11-04 02:33:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2283.html