Quando eu corro:
chcon -R -t http_sys_content_t /usr/local/nagios/sbin/
Eu recebo os seguintes erros:
chcon: failed to change context of ‘archivejson.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘avail.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘cmd.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘config.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘extinfo.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘histogram.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘history.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘notifications.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘objectjson.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘outages.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘showlog.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘status.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘statusjson.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘statusmap.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘statuswml.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘statuswrl.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘summary.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘tac.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘trends.cgi’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
chcon: failed to change context of ‘/usr/local/nagios/sbin/’ to ‘unconfined_u:object_r:http_sys_content_t:s0’: Invalid argument
Como posso corrigi-lo e o que causa esse problema?
Não existe esse tipo
http_sys_content_t
.Você pretendia usar
httpd_sys_content_t
em vez disso?