title: why syslog-ng cannot startup with SELinux TYPE syslogd_exec_t?
body: <p>I have syslog-ng installed on CentOS 5.7 system with SELinux enforcing. </p>
  
  <p>i cannot startup syslog-ng service by "service syslog-ng start", because of the error: </p>
  
  <pre><code>[root@localhost ~]# service syslog-ng start
  Starting syslog-ng: 
  GThread-ERROR **: file gthread-posix.c: line 135 (): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &amp;policy, &amp;sched)'
  aborting...
                                                             [FAILED]
  </code></pre>
  
  <p>i checked by google and get as below: </p>
  
  <pre><code>This is probably related to your SELinux policy, which does not allow syslog-ng  get the scheduler parameters. 
  </code></pre>
  
  <p>and i can see SELinux type by </p>
  
  <pre><code>[root@localhost ~]# 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
  </code></pre>
  
  <p>but with the same SELinux type "syslogd_exec_t", syslogd can be startup by "service syslog start", why SELinux cannot allow syslog-ng startup? i think they all need to get "scheduler parameter". </p>
  
  <p>and how could i make syslog-ng works with SELinux type "syslogd_exec_t", because natually they all works for syslog mechanism. </p>
  
  <p>thanks, 
  EM</p>