Bug 219645
Summary: | Can't mount with additional contexts | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Karel Zak <kzak> |
Component: | nfs-utils | Assignee: | Karel Zak <kzak> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.0 | CC: | dwalsh, eparis, iboverma, jturner, sgrubb, steved |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 5.0.0 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-01-15 14:30:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Karel Zak
2006-12-14 16:53:09 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Seems a little late to take in something like this. What's the business impact of not taking the change? NFS being basically useless in many/most SELinux environments? The change has already gone into kernel, it has already gone into mount utilities for local filesystems, the patch is just missing from the NFS mount utility. many users use -o context="your context here" to mount NFS shares so that daemons like apache can then use that data. Without this change there will be no way for users to mount NFS with a given context. We need to support this in nfs-utils, because we already support it in standard mount. The patch for /sbin/mount.nfs is almost same like for standard /bin/mount. I'm going to apply the patch ASAP. Fixed. Update to nfs-utils-1.0.9-16.el5. [root@haring tmp]# rpm -q nfs-utils nfs-utils-1.0.9-16.el5.i386 [root@haring tmp]# uname -r 2.6.18-1.2943.el5 [root@haring tmp]# mount -o loop,context=root:object_r:root_t:s0:c1,c4 boot.iso /mnt/qa mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so Dropping the ",c4" from the command works. It works -- see bug #211827. You have to use quotes! mount -o loop,context=\"root:object_r:root_t:s0:c1,c4\" boot.iso /mnt/qa Ah yes, all better now on all accounts. nfs-utils-1.0.9-16.el5 included in 20070111.1 and 20070112.3. |