Selinux: Difference between revisions

From Halfface
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
  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 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
  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

Revision as of 16:31, 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