Hi,
I am running CentOS 5.2 on our server. I am sharing home directories,
nfs mounted directories, and autofs/nfs mounted directories via samba.
I have run the command "setsebool -P samba_enable_home_dirs on" and
the home directories are being shared via samba successfully. I have
added this context option to /etc/fstab to share an nfs mounted
filesystem via samba successfully:
biodata:/data /data nfs rw,auto,bg,soft,context=system_u

bject_r:samba_share_t 0 0
So far everything is good. However, we also have "work" directories
which are automounted. I want to share these as well via samba. I
have added the context option to /etc/auto.master:
/work /etc/auto.work rw,soft,intr,context=system_u

bject_r:samba_share_t
I have also added the context information to the auto.work map:
ba -context=system_u

bject_r:samba_share_t bioactive:/work-ba
Neither of these things has caused the automounted filesystems to
have files with the proper samba_share_t context. As a result, any
attempt to access these via samba from a Windows client fails. If I
temporarily disable selinux (setenforce 0), samba sharing works for
these automounted shares. So, I'm sure that it is a selinux problem
most likely to do with the file context. I just can't figure out how
to specify the context of an automounted filesystem.
Can anyone help?