selinux versus chcon

Ken Dreyer ktdreyer at ktdreyer.com
Mon Sep 19 20:38:53 UTC 2011


On Mon, Sep 19, 2011 at 12:49 PM, Fulko Hew <fulko.hew at gmail.com> wrote:
> %{_bindir}/chcon -t httpd_sys_script_exec_t
> /var/www/html/nia/scripts/* 2>/dev/null
> semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nia/tmp'
> 2>/dev/null
> restorecon -v '/var/www/html/nia/tmp' 2>/dev/null

As an aside, it is a good idea to avoid placing packaged files into
/var/www. You can check out the packaging guidelines at
https://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications

- Ken


More information about the devel mailing list