Bug 1158248

Summary: RFE: mqueue file system does not accept SELinux context=<label> mount options.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: kernelAssignee: Ondrej Mosnacek <omosnace>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, eparis, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, stephan
Target Milestone: ---Keywords: FutureFeature, Reproducer
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Daniel Walsh 2014-10-28 23:59:14 UTC
Description of problem:

/dev/mqueue is a tmpfs file system, and it supports labeling, we want to label it within a docker container with the context="system_u:object_r:svirt_sandbox_file_t:s0" option

Comment 1 Daniel Walsh 2014-10-29 00:00:50 UTC
mount -t mqueue mqueue -o context="system_u:object_r:etc_t:s0" /dev/mqueue
mount: wrong fs type, bad option, bad superblock on mqueue,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

[180131.324270] SELinux: mount invalid.  Same superblock, different security settings for (dev mqueue, type mqueue)

Comment 2 Jaroslav Reznik 2015-03-03 16:26:55 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 3 Justin M. Forbes 2015-10-20 19:35:20 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 22 kernel bugs.

Fedora 22 has now been rebased to 4.2.3-200.fc22.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 23, and are still experiencing this issue, please change the version to Fedora 23.

If you experience different issues, please open a new bug report for those.

Comment 4 Paul Moore 2015-10-20 21:39:17 UTC
Moving to Rawhide to avoid Fedora MASS BUG UPDATEs.