Package: courier-authdaemon
Version: 0.63.0-5
Severity: normal
Tags: patch

On a system using SELinux, /etc/init.d/courier-authdaemon needs to set
the file context for the /run/courier directory after creating itl
otherwise it ends up with context var_run_t instead of
courier_var_run_t.


--- debian/courier-authdaemon.init.orig 2012-04-09 00:01:44.074736575 +0100
+++ debian/courier-authdaemon.init      2012-04-09 00:02:23.330738689 +0100
@@ -32,10 +32,12 @@
        if [ ! -d "$rundir_courier" ]; then
                mkdir -m 0775 $rundir_courier
                chown daemon:daemon $rundir_courier
+               [ -x /sbin/restorecon ] && /sbin/restorecon $rundir_courier
        fi
        if [ ! -d "$rundir" ]; then
                mkdir -m 0750 $rundir 
                chown daemon:daemon $rundir
+               [ -x /sbin/restorecon ] && /sbin/restorecon $rundir
        fi
        $daemonscript start
        log_end_msg 0


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.1 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages courier-authdaemon depends on:
ii  courier-authlib  0.63.0-5
ii  lsb-base         4.1+Debian0+fancy0

courier-authdaemon recommends no packages.

courier-authdaemon suggests no packages.

-- Configuration Files:
/etc/courier/authdaemonrc [Errno 13] Permission denied: 
u'/etc/courier/authdaemonrc'

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to