httpd_sys_content_rw_t
Posted: 2010/01/11 01:39:56
I am installing some web software that is trying to set the security context like this:
/usr/bin/chcon -R -t httpd_sys_content_rw_t /htdocs/gbrowse2/tmp
This command fails with this error:
wes@bioweb> /usr/bin/chcon -R -t httpd_sys_content_rw_t /htdocs/gbrowse2/tmp
/usr/bin/chcon: failed to change context of /htdocs/gbrowse2/tmp to user_u:object_r:httpd_sys_content_rw_t: Invalid argument
I've done some searching on the web and the security context appears to be valid. However,
it does not seem to work on our CentOS 4.8 web server. The httpd_selinux man page does
not mention this context. However, it does mention httpd_sys_content_t which is similar but
I need one that allows write access.
/usr/bin/chcon -R -t httpd_sys_content_rw_t /htdocs/gbrowse2/tmp
This command fails with this error:
wes@bioweb> /usr/bin/chcon -R -t httpd_sys_content_rw_t /htdocs/gbrowse2/tmp
/usr/bin/chcon: failed to change context of /htdocs/gbrowse2/tmp to user_u:object_r:httpd_sys_content_rw_t: Invalid argument
I've done some searching on the web and the security context appears to be valid. However,
it does not seem to work on our CentOS 4.8 web server. The httpd_selinux man page does
not mention this context. However, it does mention httpd_sys_content_t which is similar but
I need one that allows write access.