2012-07-05 4 views
0

나는 SELinux가 적용된 CentOS 5.7 시스템에 syslog-ng가 설치되어 있습니다.syslog-ng가 SELinux TYPE syslogd_exec_t로 ​​시작할 수없는 이유는 무엇입니까?

내가 오류로 인해 "서비스 시스템 로그가-NG가 시작"에 의해 시스템 로그-ng에 서비스가 시작되지

:

[[email protected] ~]# service syslog-ng start 
Starting syslog-ng: 
GThread-ERROR **: file gthread-posix.c: line 135(): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, &sched)' 
aborting... 
                  [FAILED] 

내가 구글에 의해 확인 및 아래 얻을 :

This is probably related to your SELinux policy, which does not allow syslog-ng get the scheduler parameters. 

그리고 난을

[[email protected] ~]# ls -lZ /sbin/syslog* 
-rwxr-xr-x root root system_u:object_r:syslogd_exec_t /sbin/syslogd 
-rwxr-xr-x root root system_u:object_r:syslogd_exec_t /sbin/syslog-ng 

에 의해하지만 같은 SELinux는 유형 "syslogd_exec_t"로 SELinux의 유형을 볼 수는 syslogd 서비스 "로 시작 할 수있다 syslog start ", 왜 SELinux가 syslog-ng 시작을 허용 할 수 없습니까? 나는 그들이 모두 "스케줄러 매개 변수"를 얻을 필요가 있다고 생각한다.

그리고 syslog-ng는 SELinux 유형 "syslogd_exec_t"와 함께 작동 할 수 있습니다. 왜냐하면이 모든 것이 실제로 syslog 메커니즘에서 작동하기 때문입니다.

덕분에, /var/log/audit/audit.log에서 EM

답변

1

봐 조치를 (있는 경우) SE 리눅스에 의해 거부 된 것을 볼 수.

SE Linux가 액세스를 거부하면 "audit2allow"명령을 사용하여 이러한 작업을 허용하는 정책을 생성 할 수 있습니다. 모든 작업을 맹목적으로 허용하지 마십시오. 관련있는 것만 허용하십시오.