when to use restorecon -F [was Re: SELinux blocking Samba share mounting?]

Murray McAllister mmcallis at redhat.com
Sat Feb 14 02:34:10 UTC 2009


Paul Howarth wrote:
> Steven Stromer wrote:
>>> What's the output of:
>>>
>>> # audit2allow < /var/log/audit/audit.log
>>>
>>> Paul.
>>>
>>
>>
>> Paul,
>>
>> Thanks for the time! I understand what you are saying. I have set:
>>
>> chcon -R -h -t home_root_t /home
>>
>> so that the entire path's heirarchy will be consistent,
> 
> No no, this is wrong. home_root_t is for directories that *contain* home 
> directories, not the home directories and their contents themselves.
> 
> I'd do a "restorecon -RF /home" to fix that, then put back the contexts 
> on your share areas as you wanted them (e.g. samba_share_t or 
> public_content_rw_t etc.).

When should restorecon -F be used? I read the man page but can't figure 
out how it is different to just running restorecon without -F.

Cheers.




More information about the fedora-selinux-list mailing list