SELINUX = enforceing을 사용하여 CentOS에서 Nagios 코어를 설정하고 있습니다.
나는 실행하려고
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
같은 매뉴얼에 제안 ,하지만 난이 오류 메시지를 얻을 :
chcon: can't apply partial context to unlabeled file `cmd.cgi'
chcon: can't apply partial context to unlabeled file `trends.cgi'
chcon: can't apply partial context to unlabeled file `histogram.cgi'
chcon: can't apply partial context to unlabeled file `avail.cgi'
chcon: can't apply partial context to unlabeled file `history.cgi'
chcon: can't apply partial context to unlabeled file `status.cgi'
chcon: can't apply partial context to unlabeled file `tac.cgi'
chcon: can't apply partial context to unlabeled file `showlog.cgi'
chcon: can't apply partial context to unlabeled file `notifications.cgi'
chcon: can't apply partial context to unlabeled file `extinfo.cgi'
chcon: can't apply partial context to unlabeled file `statuswml.cgi'
chcon: can't apply partial context to unlabeled file `outages.cgi'
chcon: can't apply partial context to unlabeled file `statuswrl.cgi'
chcon: can't apply partial context to unlabeled file `statusmap.cgi'
chcon: can't apply partial context to unlabeled file `config.cgi'
chcon: can't apply partial context to unlabeled file `summary.cgi'
이러한 오류를 피하는 방법에 대한 아이디어가 있습니까?
1
파일에 라벨을 붙이시겠습니까? 즉, 유형 레이블 외에 사용자 및 역할 레이블을 추가하십시오.
—
ninjalj