[CentOS] SELinux - different context on subdirectories

Thu Mar 19 14:48:02 UTC 2009
Ned Slider <ned at unixmail.co.uk>

Marcus Moeller wrote:
> Dear Ned.
> 
>> You may also need to manually change the context first:
>>
>> chcon -v --type=samba_share_t /srv/samba
> 
> chcon did the trick.
> 
> Thanks a lot
> Marcus

semanage will make the changes persistent through a complete filesystem 
relabel (chcon will persist through a reboot, but not a relabel).

Cheers,

Ned