Группа :: Графические оболочки/KDE
Пакет: kde4base
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: kdebase-4.3.90-alt-konsole-allow-sgid.patch
Скачать
Скачать
--- kdebase-4.3.90/apps/konsole/src/main.cpp~ 2010-01-20 19:43:25 +0300
+++ kdebase-4.3.90/apps/konsole/src/main.cpp 2010-01-20 19:56:19 +0300
@@ -17,6 +17,8 @@
02110-1301 USA.
*/
+#include <unistd.h>
+
// Own
#include "Application.h"
#include "MainWindow.h"
@@ -72,7 +74,10 @@ extern "C" int KDE_EXPORT kdemain(int ar
exit(0);
}
+ gid_t gid = getgid(), egid = getegid();
+ setresgid(gid,gid,egid);
Application app;
+ setegid(egid);
restoreSession(app);
return app.exec();
}
--- kdebase-4.1.3/apps/konsole/src/Pty.cpp~ 2008-05-21 12:32:54 +0400
+++ kdebase-4.1.3/apps/konsole/src/Pty.cpp 2008-11-07 17:12:25 +0300
@@ -209,7 +209,10 @@ int Pty::start(const QString& program,
pty()->setWinSize(_windowLines, _windowColumns);
+ gid_t gid = getgid(), egid = getegid();
+ setresgid(gid,gid,egid);
KProcess::start();
+ setegid(egid);
if (!waitForStarted())
return -1;