Bug 1459835

Summary: the file plugin should also match AVCs where target type = unlabeled_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:
: 1459844 1459875 1649818 (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 10:15:20 UTC
Description of problem:
* the file plugin matches only AVCs where target type is file_t, but file_t is an alias for unlabeled_t on RHEL-7
* as a result the file plugin report never appears in the output of sealert

# touch pokus
# ls -Z ./pokus
-rw-r--r--. root root unconfined_u:object_r:admin_home_t:s0 ./pokus
# chcon -t file_t ./pokus
# ls -Z ./pokus
-rw-r--r--. root root unconfined_u:object_r:unlabeled_t:s0 ./pokus
# seinfo -tfile_t -x
   TypeName unlabeled_t
   Aliases
      file_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/file
3. sealert -l '*'

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

Expected results:
 * the file 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