kinit: use a setuid wrapper for start_kdeinit
This commit is contained in:
parent
512212db36
commit
d3747a2261
@ -54,16 +54,12 @@ in
|
|||||||
owner = "root";
|
owner = "root";
|
||||||
setuid = true;
|
setuid = true;
|
||||||
}
|
}
|
||||||
# ttuegel: Disabled until I can figure out how to propagate the
|
|
||||||
# necessary environment variables.
|
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
program = "start_kdeinit_wrapper";
|
program = "start_kdeinit";
|
||||||
source = "${kde5.kinit.out}/lib/libexec/kf5/start_kdeinit_wrapper";
|
source = "${kde5.kinit.out}/lib/libexec/kf5/start_kdeinit";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
setuid = true;
|
setuid = true;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
{ kdeFramework, lib, copyPathsToStore, extra-cmake-modules, kconfig, kcrash
|
{
|
||||||
, kdoctools, ki18n, kio, kservice, kwindowsystem, libcap
|
kdeFramework, lib, copyPathsToStore,
|
||||||
|
extra-cmake-modules, kdoctools,
|
||||||
|
kconfig, kcrash, ki18n, kio, kservice, kwindowsystem
|
||||||
}:
|
}:
|
||||||
|
|
||||||
kdeFramework {
|
kdeFramework {
|
||||||
name = "kinit";
|
name = "kinit";
|
||||||
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools libcap.out ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
kconfig kcrash ki18n kio kservice kwindowsystem libcap
|
kconfig kcrash ki18n kio kservice kwindowsystem
|
||||||
];
|
];
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: kinit-5.21.0/src/kdeinit/kinit.cpp
|
Index: kinit-5.24.0/src/kdeinit/kinit.cpp
|
||||||
===================================================================
|
===================================================================
|
||||||
--- kinit-5.21.0.orig/src/kdeinit/kinit.cpp
|
--- kinit-5.24.0.orig/src/kdeinit/kinit.cpp
|
||||||
+++ kinit-5.21.0/src/kdeinit/kinit.cpp
|
+++ kinit-5.24.0/src/kdeinit/kinit.cpp
|
||||||
@@ -657,19 +657,16 @@ static pid_t launch(int argc, const char
|
@@ -672,19 +672,16 @@ static pid_t launch(int argc, const char
|
||||||
|
|
||||||
if (!libpath.isEmpty()) {
|
if (!libpath.isEmpty()) {
|
||||||
if (libpath_relative) {
|
if (libpath_relative) {
|
||||||
|
@ -1 +1,2 @@
|
|||||||
kinit-libpath.patch
|
kinit-libpath.patch
|
||||||
|
start_kdeinit-path.patch
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
Index: kinit-5.24.0/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||||
|
===================================================================
|
||||||
|
--- kinit-5.24.0.orig/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||||
|
+++ kinit-5.24.0/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||||
|
@@ -23,7 +23,7 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
-#define EXECUTE CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit"
|
||||||
|
+#define EXECUTE "/var/setuid-wrappers/start_kdeinit"
|
||||||
|
|
||||||
|
#if KDEINIT_OOM_PROTECT
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user