Bug 430138 - /dev/dmmidi has default label; rpc.mountd causes SELinux error audits
Summary: /dev/dmmidi has default label; rpc.mountd causes SELinux error audits
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-24 18:43 UTC by Mats Andtbacka
Modified: 2008-03-05 22:17 UTC (History)
0 users

Fixed In Version: Current
Clone Of:
Environment:
Last Closed: 2008-03-05 22:17:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mats Andtbacka 2008-01-24 18:43:21 UTC
Description of problem:

SELinux has denied the /usr/sbin/rpc.mountd (nfsd_t) "getattr" access to device
/dev/dmmidi. /dev/dmmidi is mislabeled, this device has the default label of the
/dev directory, which should not happen. All Character and/or Block Devices
should have a label. You can attempt to change the label of the file using
restorecon -v /dev/dmmidi. If this device remains labeled device_t, then this is
a bug in SELinux policy. Please file a bug report against the selinux-policy
package. If you look at the other similar devices labels, ls -lZ /dev/SIMILAR,
and find a type that would work for /dev/dmmidi, you can use chcon -t
SIMILAR_TYPE /dev/dmmidi, If this fixes the problem, you can make this permanent
by executing semanage fcontext -a -t SIMILAR_TYPE /dev/dmmidi If the restorecon
changes the context, this indicates that the application that created the
device, created it without using SELinux APIs. If you can figure out which
application created the device, please file a bug report against this application.


Version-Release number of selected component (if applicable):

selinux-policy-2.6.4-67.fc7

How reproducible:

export a directory over NFS (i exported a sub-tree of /media) while SELinux is
in enforcing mode. mount it remotely and access files on it. rpc.mountd will
begin generating denial audit messages at a rate of (in my case) several per hour.

Additional info:

no apparent ill effects other than the audit messages --- the NFS-exported
directory works well and is accessible. hence, low priority.

however, this also seems like a low-hanging fruit; adding a file label to the
default policy should fix it. i do not know what label would best work,
unfortunately.

Comment 1 Daniel Walsh 2008-01-24 19:10:37 UTC
Fixed in selinux-policy-2.6.4-71.fc7

Comment 2 Daniel Walsh 2008-03-05 22:17:32 UTC
Bugs have been in modified for over one month.  Closing as fixed in current
release please reopen if the problem still persists.


Note You need to log in before you can comment on or make changes to this bug.