当我运行时:
chcon -R -t http_sys_content_t /usr/local/nagios/sbin/
我收到以下错误:
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
我该如何解决它以及导致此问题的原因?
没有这种类型
http_sys_content_t
。你打算
httpd_sys_content_t
改用吗?