-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 11/20/2013 04:34 AM, Vidalie Hervé wrote:
Thank you for your clarification.
How to modify current policy to add default context to some paths without using semanage fcontext -a? Where can I find sources of the policy I use? (I am using selinux-policy-targeted-3.7.19-195.el6_4.18.noarch)
Regards,
Hervé
There are two ways of adding file context mappings, either add them to a policy package (pp) file and install them, or use semanage fcontext.
If you use a policy package the labeling will work with the existing labeling, while semanage fcontext -a will take precedence.
semanage fcontext -a -e /var/www /WWW
Might also be usefull for saying labels under one directory should be like labels under a different directory.
What labeling are you trying to setup?