mount -t nfs -o context not working (RHEL 6)

Konstantin Ryabitsev icon at fedoraproject.org
Thu Nov 24 02:58:52 UTC 2011


Hi, all:

I was trying to mount NFS with the context= option, but for some reason
it's not doing what the FAQs say it should be doing.

# mount | grep nfs
ra:/repos/pub on /repos/pub type nfs (ro,soft,intr,fg,rsize=8192,wsize=8192,context="system_u:object_r:git_system_content_t:s0",vers=4,addr=192.168.19.202,clientaddr=192.168.19.203)

# ls -Zad /repos/pub
drwxr-xr-x. 4294967294 4294967294 system_u:object_r:nfs_t:s0       /repos/pub

Not sure what I'm doing wrong here -- is the context= option not
supported on RHEL 6, or am I just missing something obvious?

Regards,
-- 
Konstantin Ryabitsev
Systems Administrator
The Linux Foundation
Montréal, Québec



More information about the selinux mailing list