Bug 1731451

Summary: mlscolor-test fails with example configuration (mls only)
Product: Red Hat Enterprise Linux 8 Reporter: Vit Mojzis <vmojzis>
Component: mcstransAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: lvrabec, mmalik, plautrba
Target Milestone: rc   
Target Release: 8.2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1770270 (view as bug list) Environment:
Last Closed: 2020-04-28 16:51:58 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:
Bug Depends On:    
Bug Blocks: 1770270    

Description Vit Mojzis 2019-07-19 12:45:19 UTC
Description of problem:
mlscolor-test fails with example configuration (/usr/share/mcstrans/examples/urcsts)

Version-Release number of selected component (if applicable):
mcstrans-2.9-1.2.el8

Steps to Reproduce:
On an mls rhel 8.1 system:
# pushd /usr/share/mcstrans/examples/urcsts
# cp -f secolor.conf /etc/selinux/mls/secolor.conf
# cp -f setrans.conf /etc/selinux/mls/setrans.conf
# systemctl restart mcstrans
# python3 /usr/share/mcstrans/util/mlscolor-test urcsts.color

Actual results:

For 'system_u:system_r:inetd_t:SystemLow' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:s0' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:s0:c1' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:UNCLASSIFIED' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:s1' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:s1:c2' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #008000'
For 'system_u:system_r:inetd_t:RESTRICTED' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #d2b48c'
For 'system_u:system_r:inetd_t:s3' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #d2b48c'
For 'system_u:system_r:inetd_t:s3:c3' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #d2b48c'
For 'system_u:system_r:inetd_t:CONFIDENTIAL' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #ffffff #0000ff'
For 'system_u:system_r:inetd_t:s5' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #ffffff #0000ff'
For 'system_u:system_r:inetd_t:s5:c0.c5' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #ffffff #0000ff'
For 'system_u:system_r:inetd_t:SECRET' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ff0000'
For 'system_u:system_r:inetd_t:s7' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ff0000'
For 'system_u:system_r:inetd_t:s7:c200.c300' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ff0000'
For 'system_u:system_r:inetd_t:TOP SECRET' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ffa500'
For 'system_u:system_r:inetd_t:s9' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ffa500'
For 'system_u:system_r:inetd_t:s9:c1023' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ffa500'
For 'system_u:system_r:inetd_t:s15' got
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000' expected
	'#000000 #000000 #000000 #000000 #000000 #000000 #000000 #ffff00'
mlscolor-test done with 19 errors

Expected results:
mlscolor-test done with 0 errors

Comment 6 errata-xmlrpc 2020-04-28 16:51:58 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-2020:1839