[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#677831: x11-common: please apply this 1 line patch for correct SE Linux labelling



Package: x11-common
Version: 1:7.6+13
Severity: normal


The following patch causes the /tmp/.ICE-unix and /tmp/.X11-unix directories
to have the correct SE Linux labels which is essential to logging in when using
KDE (and probably most other desktop environments).

--- x11-common.orig	2012-06-17 14:31:17.000000000 +1000
+++ x11-common	2012-06-17 15:02:08.000000000 +1000
@@ -53,6 +53,7 @@
       rm "$fn"
     fi
     mkdir -p -m 01777 "$DIR" || { rm "$DIR" || error=$((error + 1)) ; continue ; }
+    [ -x /sbin/restorecon ] && /sbin/restorecon "$DIR"
     case "$(LC_ALL=C stat -c '%u %g %a %F' "$DIR")" in
       "0 0 1777 directory")
         # everything as it is supposed to be

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

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]  1.5.43
ii  lsb-base               4.1+Debian7

x11-common recommends no packages.

x11-common suggests no packages.

-- debconf information excluded



Reply to: