Package: policycoreutils
Followup-For: Bug #326152

Here's a patch to unblock the sigCHLD signal just before the execve.
I don't know if this is the appropriate place to do so, or if there is a
reason why it should not be done. But I used this patch to get munin
working with SElinux again. ;-)

--- policycoreutils-1.24.orig/run_init/open_init_pty.c
+++ policycoreutils-1.24/run_init/open_init_pty.c
@@ -192,6 +192,13 @@
         perror("Child:");
         exit(EXIT_FAILURE);
       }
+     {
+         sigset_t  signal_set;
+         /* release SIGCHLD */
+         sigemptyset(&signal_set);      /* no signals */
+         sigaddset(&signal_set, SIGCHLD); /* Add sig child  */
+         sigprocmask(SIG_UNBLOCK, &signal_set, NULL); /* Unblock the signal */
+     }

      if ( execvp(argv[1], argv + 1) ) {
        perror("Exec:");


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13-rc4
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to