Selinux: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
Copy security contex from another directory. | Copy security contex from another directory. | ||
chcon --reference=/var/www/cgi-bin -R /usr/local/linuxcoe-sd/cgi-bin | chcon --reference=/var/www/cgi-bin -R /usr/local/linuxcoe-sd/cgi-bin | ||
Show selinux status. | |||
sestatus | |||
Set selinux status. | |||
setenforce Enforcing |
Revision as of 16:43, 8 July 2010
list selinux setting on directory.
ls -Zld /var/ www/cgi-bin /usr/local/linuxcoe-sd/cgi-bin/ drwxr-xr-x 2 root:object_r:usr_t root root 4096 Jun 12 12:55 /usr/local/linuxcoe-sd/cgi-bin/ drwxr-xr-x 2 system_u:object_r:httpd_sys_script_exec_t root root 4096 Feb 28 2005 /var/www/cgi-bin
Copy security contex from another directory.
chcon --reference=/var/www/cgi-bin -R /usr/local/linuxcoe-sd/cgi-bin
Show selinux status.
sestatus
Set selinux status.
setenforce Enforcing