[CentOS] Custom SELinux file contexts?

Ingemar Nilsson init at kth.se
Mon Apr 14 15:58:35 UTC 2008


Ingemar Nilsson wrote:

>> /etc/selinux/targeted/contexts/files/file_contexts.local works fine
>> for me. Did you use restorecon afterwards to relabel the relevant
>> files/directories?
> 
> It works now, I don't know what mistake I made. Thanks anyway.

It only works when using the name file_contexts.local though, using a 
subdirectory like file_contexts.d or a file named 
file_contexts.somethingelse does not work.

Regards
Ingemar



More information about the CentOS mailing list