[kdebase-workspace/f15] kdm overwrites ~/.Xauthority with wrong SELinux context on logout (#567914, kde#242065)

Rex Dieter rdieter at fedoraproject.org
Tue Jan 3 20:49:04 UTC 2012


commit 83cf00882746f7d06244497633ed1893da8ee5c7
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 3 14:49:02 2012 -0600

    kdm overwrites ~/.Xauthority with wrong SELinux context on logout (#567914,kde#242065)

 kde-workspace-4.7.95-kdm_xauth.patch |   16 ++++++++++++++++
 kdebase-workspace.spec               |   11 ++++++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/kde-workspace-4.7.95-kdm_xauth.patch b/kde-workspace-4.7.95-kdm_xauth.patch
new file mode 100644
index 0000000..5c7a388
--- /dev/null
+++ b/kde-workspace-4.7.95-kdm_xauth.patch
@@ -0,0 +1,16 @@
+diff -up kde-workspace-4.7.95/kdm/backend/auth.c.selinux_wtf kde-workspace-4.7.95/kdm/backend/auth.c
+--- kde-workspace-4.7.95/kdm/backend/auth.c.selinux_wtf	2011-12-20 18:40:36.000000000 -0600
++++ kde-workspace-4.7.95/kdm/backend/auth.c	2012-01-03 14:33:38.931306044 -0600
+@@ -1292,6 +1292,12 @@ removeUserAuthorization(struct display *
+ 
+     if (!(auths = d->authorizations))
+         return;
++
++    /* given that the code below doesn't handle the forceUserAuthDir case, */
++    /* let's just bail out for now, see http://bugs.kde.org/242065         */
++    if ( d->forceUserAuthDir ) 
++        return;
++
+     debug("removeUserAuthorization\n");
+     startUserAuth(name, new_name, &old, &new);
+     if (new) {
diff --git a/kdebase-workspace.spec b/kdebase-workspace.spec
index 3e3ed28..42d0c31 100644
--- a/kdebase-workspace.spec
+++ b/kdebase-workspace.spec
@@ -8,7 +8,7 @@ Version: 4.6.5
 # for .0 releases we have to use '00' as '0' is treated as null by cmake, dont' forget to update
 %define kde4workspace_version %{version} 
 
-Release: 7%{?dist}
+Release: 8%{?dist}
 
 License: GPLv2
 Group:   User Interface/Desktops
@@ -72,6 +72,11 @@ Patch50: kdebase-workspace-4.3.3-kde#171685.patch
 # https://bugs.kde.org/show_bug.cgi?id=278206 (patch by Alex Fiestas)
 Patch51: kdebase-workspace-4.7.0-kde#278206.patch
 
+# kdm overwrites ~/.Xauthority with wrong SELinux context on logout
+# http://bugzilla.redhat.com/567914
+# http://bugs.kde.org/242065
+Patch53: kde-workspace-4.7.95-kdm_xauth.patch
+
 ## 4.6 patches
 # [Bug 718461] New: After unplugging external monitor laptop left with black screen
 Patch100: kdebase-workspace-4.6.6-bug718461.patch
@@ -326,6 +331,7 @@ Requires: akonadi
 # upstreamable patches
 %patch50 -p1 -b .kde#171685
 %patch51 -p1 -b .kde#278206
+%patch53 -p1 -b .kdm_xauth
 
 # 4.6 patches
 %patch100 -p1 -b .bug718461
@@ -752,6 +758,9 @@ fi
 
 
 %changelog
+* Tue Jan 03 2012 Rex Dieter <rdieter at fedoraproject.org> 4.6.5-8
+- kdm overwrites ~/.Xauthority with wrong SELinux context on logout (#567914,kde#242065)
+
 * Thu Oct 06 2011 Rex Dieter <rdieter at fedoraproject.org> 4.6.5-7
 - rebuild (arm) 
 


More information about the scm-commits mailing list