September 2014
Intermediate to advanced
240 pages
5h 53m
English
In the previous chapter, we manipulated the /etc/rc.d/init.d/httpd init script to use runcon in order for the web server to run with a limited clearance. But with the help of mod_selinux, this can be made configurable.
In order to start Apache with limited security clearance, follow the given steps:
httpd.conf) and add in the following code:<IfModule mod_selinux.c> selinuxServerDomain *:s0-s0:c0.c10 </IfModule>
s0-s0:c0.c10 clearance by issuing the following commands:~# /etc/rc.d/init.d/httpd restart ~# ps -efZ | grep httpd ...