Re: priority between file context rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2013-11-18 at 15:22 +0100, Vidalie Hervé wrote:

> I would like to set a default type on /WEBS and his subfolders:
> semanage fcontext -a -t httpd_sys_content_t '/WEBS(/.*)?'
> restorecon -Rv /WEBS*
> However, this command sets the type httpd_sys_content_t recursively on everything in /WEBS
> What is the priority between file context rules? I thought more precise rules will prevail on others.

I can't answer your last question since i was under the same impression
but:

You can use:

semanage fcontext -m -t httpd_sys_content_t -f -d '/WEBS(/.*)?'

To modify the spec to make it apply to directories only (note the -f -d)

--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux