Bug 1488322

Summary: /dev/mtd0 device should have a more specific label than device_t
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: lvrabec, mgrepl, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1623124 (view as bug list) Environment:
Last Closed: 2018-04-10 12:42:01 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: 1623124    

Description Milos Malik 2017-09-05 07:33:44 UTC
Description of problem:

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-171.el7a.noarch
selinux-policy-targeted-3.13.1-171.el7a.noarch

How reproducible:
* always when the device is available

Steps to Reproduce:
1. get a RHEL-ALT-7.4 machine equipped with a Memory Technology Device (MTD)
2. ls -Z /dev/mtd*
3. matchpathcon /dev/mtd*

Actual results:
/dev/mtd0ro system_u:object_r:device_t:s0
/dev/mtd0 system_u:object_r:device_t:s0

Expected results:
* devices are labeled fixed_disk_device_t or something similar

Comment 6 errata-xmlrpc 2018-04-10 12:42:01 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:0763