当我跑步时:
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
我该如何修复它以及是什么原因导致了这个问题?
答案1
没有此类型http_sys_content_t
。
您打算改用httpd_sys_content_t
吗?