Bug 1459875

Summary: the xen_image plugin should also match AVCs where source type = virsh_t
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: setroubleshootAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: lmiksik, lvrabec, mgrepl, mmalik, plautrba
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1459835
: 1649831 (view as bug list) Environment:
Last Closed: 2018-10-30 09:47:31 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 Milos Malik 2017-06-08 12:29:11 UTC
Description of problem:
* the xen_image plugin matches only AVCs where source type is xend_t or xm_t, but xm_t is an alias for virsh_t on RHEL-7
* as a result the xen_image plugin only matches AVCs caused by processes running under xend_t

# seinfo -txm_t -x
   TypeName virsh_t
   Aliases
      xm_t
#

Version-Release number of selected component (if applicable):
setroubleshoot-server-3.2.28-3.el7.x86_64
setroubleshoot-plugins-3.0.65-1.el7.noarch

How reproducible:
* always

Steps to Reproduce:
1. get a RHEL-7.3 or RHEL-7.4 machine (targeted policy is active)
2. run following automated TC:
 * /CoreOS/setroubleshoot-plugins/Sanity/xen_image
3. sealert -l '*'

Actual results:
 * the xen_image plugin report does NOT appear in the output of sealert

Expected results:
 * the xen_image plugin report appears in the output of sealert

Comment 5 errata-xmlrpc 2018-10-30 09:47:31 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://access.redhat.com/errata/RHBA-2018:3100