8da1b75
==========================
8da1b75
SELinux support in AWStats
8da1b75
==========================
8da1b75
8da1b75
8da1b75
What is the problem ?
8da1b75
---------------------
8da1b75
8da1b75
AWStats is a CGI script, and needs to be labelled correctly to be called
8da1b75
from Apache.
8da1b75
The files in ``/usr/share/awstats/wwwroot/cgi-bin`` need to have the 
8da1b75
``httpd_sys_script_exec_t`` type, and the databases files in 
8da1b75
``/var/lib/awstats`` need to have the ``httpd_sys_script_rw_t`` type.
8da1b75
8da1b75
8da1b75
How do we solve it ?
8da1b75
--------------------
8da1b75
8da1b75
You can change the type with the ``chcon`` command::
8da1b75
8da1b75
    chcon -R -t httpd_sys_script_exec_t /usr/share/awstats/wwwroot/cgi-bin
8da1b75
    chcon -R -t httpd_sys_script_rw_t /var/lib/awstats
8da1b75
8da1b75
But these modifications will be lost if the system is relabeled (you can
8da1b75
request a relabel with the system-config-security tool).
8da1b75
8da1b75
To make these changes permanent, this package sets the contexts by running
8da1b75
the following commands::
8da1b75
8da1b75
    semanage fcontext -a -t httpd_sys_script_exec_t \
8da1b75
        '/usr/share/awstats/wwwroot/cgi-bin(/.*)?'
8da1b75
    semanage fcontext -a -t httpd_sys_script_rw_t '/var/lib/awstats(/.*)?'
8da1b75
8da1b75
8da1b75
Please send your bug reports (if any ;) ) to https://bugzilla.redhat.com