+++ This bug was initially created as a clone of Bug #211827 +++ # mount -o loop,context=root:object_r:root_t:s0:c1,c4 foo /mnt 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 See discussion here for more details: https://www.redhat.com/archives/redhat-lspp/2006-October/msg00208.html -- Additional comment from bnocera on 2006-10-23 09:12 EST -- Let me know if a kernel bug is needed as well, I'll get the TAM to open a new IT for it. -- Additional comment from kzak on 2006-10-23 10:07 EST -- The patches are waiting in my INBOX, but it's a surprise for me that we expect this change in RHEL5 GA. My plan was add this feature to rawhide (fc7). The patch to nfsmount.c is useless -- in RHEL5 we use separate mount.nfs (from the nfs-utils package) instead the old NFS from from util-linux. It means you have to open a new IT/BZ request for nfs-utils too. (Please, assign to me -- I'll fix it in both packages.) -- Additional comment from tao on 2006-10-24 14:44 EST -- A separate BZ was opened for the kernel change. I had put in a note in the IT. But the BZ is 211857 if you want to grab it.
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.