proper samba labeling

Daniel J Walsh dwalsh at redhat.com
Tue Apr 26 11:55:55 UTC 2005


Farkas Levente wrote:

> hi,
> we just upgrade some of our server to selinux enabled kernel. but the 
> date files are on a raid array which just remounted. this samba 
> server's files are also on that array and they are not labeled at all. 
> what is the right labeling for samba shares? i look trough policy 
> source files but i can't find any proper type for samba. or it's the 
> right way to not label sabma files at all?
> yours.
>
Depends on what you want to do with the files.  You might not want to 
label it at all.  Is your server mounting files from a samba server?  If
yes, those files will automatically be mounted as cifs_t.

If this machine is a samba server and you want to share those files, 
then it should be able to just do it.  Are you seeing a problem sharing 
the files?

If you want to provide general access to users you could use a mount 
option and mount them as nfs_t or user_home_t.

samba_share_t is in Rawhide/FC4 and is for the server side.  These are 
files to be shared.

Dan

-- 





More information about the fedora-selinux-list mailing list