ValueError: Type http_sys_content_t is invalid, must be a file or device type
10,004
You just need to fix your typo.
You entered:
http_sys_content_t
But it is correctly:
httpd_sys_content_t
Related videos on Youtube
Comments
-
a coder over 1 year
I need to set selinux permissions on a non-default httpd directory:
/www/virtualhosts/site01
, ect.So I issue:
[mybox]# semanage fcontext -a -t http_sys_content_t "/www(/.*)?"
And get:
ValueError: Type http_sys_content_t is invalid, must be a file or device type
What needs to happen to configure selinux to work with my non-default httpd directory?
-
a coder over 8 yearsWhat's the difference between
httpd_sys_content_t
andhttpd_sys_rw_content_t
? Should I give the same selinux permissions to the ssl certificate directory (again not the default)? -
Michael Hampton over 8 yearsOne is read only, one is read-write.
-
Michael Hampton over 8 yearsAnd, whenever possible, you should use the default directories. It will save you a lot of trouble later.
-
a coder over 8 yearsWhat is there a default ssl certificate directory in EL7?
-
Michael Hampton over 8 yearsThe directories under
/etc/pki/tls
.