From 21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Thu, 10 Nov 2011 18:04:39 -0500 Subject: initial commit to suse branch: eclipse integration --- opensuse/tdelibs/allow-man-setgid.diff | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 opensuse/tdelibs/allow-man-setgid.diff (limited to 'opensuse/tdelibs/allow-man-setgid.diff') diff --git a/opensuse/tdelibs/allow-man-setgid.diff b/opensuse/tdelibs/allow-man-setgid.diff deleted file mode 100644 index 51a47d720..000000000 --- a/opensuse/tdelibs/allow-man-setgid.diff +++ /dev/null @@ -1,32 +0,0 @@ -Index: kdecore/kapplication.cpp -=================================================================== ---- kdecore/kapplication.cpp.orig -+++ kdecore/kapplication.cpp -@@ -87,6 +87,8 @@ - #include - #endif - #include -+#include -+#include - - #ifndef Q_WS_WIN - #include "kwin.h" -@@ -776,10 +778,15 @@ void KApplication::init(bool GUIenabled) - { - d->guiEnabled = GUIenabled; - if ((getuid() != geteuid()) || -- (getgid() != getegid())) -+ (getgid() != getegid()) ) - { -- fprintf(stderr, "The KDE libraries are not designed to run with suid privileges.\n"); -- ::exit(127); -+ // man permissions are not exploitable and better than -+ // world writable directories -+ struct group *man = getgrnam("man"); -+ if ( !man || man->gr_gid != getegid() ){ -+ fprintf(stderr, "The KDE libraries are not designed to run with suid privileges.\n"); -+ ::exit(127); -+ } - } - - KProcessController::ref(); -- cgit v1.2.1