From 6e6e54d225b191eb6d66318666a91bb1237188fb Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Dec 11 2009 19:29:58 +0000 Subject: - SELinux is preventing access to a leaked .xsession-errors-:0 file descriptor (#542312) --- diff --git a/kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch b/kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch new file mode 100644 index 0000000..8729570 --- /dev/null +++ b/kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch @@ -0,0 +1,12 @@ +diff -up kdebase-workspace-4.3.80/kdm/backend/client.c.append kdebase-workspace-4.3.80/kdm/backend/client.c +--- kdebase-workspace-4.3.80/kdm/backend/client.c.append 2009-11-02 06:01:32.000000000 -0600 ++++ kdebase-workspace-4.3.80/kdm/backend/client.c 2009-12-11 13:16:49.047992973 -0600 +@@ -1182,7 +1182,7 @@ createClientLog( const char *log ) + if (!(lname = expandMacros( log, macros ))) + exit( 1 ); + unlink( lname ); +- if ((lfd = open( lname, O_WRONLY|O_CREAT|O_EXCL, 0600 )) >= 0) { ++ if ((lfd = open( lname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0600 )) >= 0) { + dup2( lfd, 1 ); + dup2( lfd, 2 ); + close( lfd ); diff --git a/kdebase-workspace.spec b/kdebase-workspace.spec index e59dfcf..505e1ad 100644 --- a/kdebase-workspace.spec +++ b/kdebase-workspace.spec @@ -7,7 +7,7 @@ Summary: K Desktop Environment - Workspace Name: kdebase-workspace Version: 4.3.80 -Release: 3%{?dist} +Release: 4%{?dist} Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/kdebase-workspace-%{version}.tar.bz2 License: GPLv2 @@ -38,6 +38,7 @@ Patch17: kdebase-workspace-4.3.75-classicmenu-logout.patch # Fix the version Patch18: kdebase-workspace-4.3.80-cmake-targets.patch Patch19: kdebase-workspace-4.3.3-kdm_plymouth.patch +Patch20: kdebase-workspace-4.3.80-xsession_errors_O_APPEND.patch # upstream patches: # "keyboard stops working", https://bugs.kde.org/show_bug.cgi?id=171685#c135 @@ -274,6 +275,7 @@ Requires: akonadi %patch17 -p1 -b .classicmenu-logout %patch18 -p1 -b .cmake-targets %patch19 -p1 -b .kdm_plymouth +%patch20 -p1 -b .xsession_errors_O_APPEND # upstream patches %patch50 -p1 -b .kde#171685 @@ -613,6 +615,9 @@ fi %changelog +* Fri Dec 11 2009 Rex Dieter - 4.3.80-4 +- SELinux is preventing access to a leaked .xsession-errors-:0 file descriptor (#542312) + * Wed Dec 09 2009 Kevin Kofler - 4.3.80-3 - drop polkit-qt* Obsoletes, we have a new polkit-qt now