[CentOS] selinux-policy update resets /etc/selinux/targeted/contexts/files/file_contexts?
Jonathan Billings
billings at negate.org
Wed Dec 17 13:56:36 UTC 2014
On Wed, Dec 17, 2014 at 11:07:06AM +0100, Patrick Bervoets wrote:
> echo "/var/www/html/ -- unconfined_u:object_r:public_content_rw_t:s0" >> /etc/selinux/targeted/contexts/files/file_contexts
Next time try putting the local policy into:
/etc/selinux/targeted/contexts/files/file_contexts.local
... which isn't overwritten by package updates. This is what would
have happened if you had used the 'semanage fcontext' command.
--
Jonathan Billings <billings at negate.org>
More information about the CentOS
mailing list