selinux versus chcon

Fulko Hew fulko.hew at
Mon Sep 19 22:50:15 UTC 2011

On Mon, Sep 19, 2011 at 4:38 PM, Ken Dreyer <ktdreyer at> wrote:
> On Mon, Sep 19, 2011 at 12:49 PM, Fulko Hew <fulko.hew at> 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

First, my excuse is... this project is 12+ years old... long before that
standard/document was ever written,
Second, thanks for pointing it out. I'll consider changing it in a future rev.

More information about the devel mailing list