From 9b7533c2fdeb3eb3fdc383d8690734b74ad5fa24 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Wed, 22 Sep 2010 23:08:05 +0000 Subject: [PATCH] KDE4: fix suid for kcheckpass, although suid doesn't seem to be needed if you use PAM svn path=/nixos/trunk/; revision=23906 --- modules/services/x11/desktop-managers/kde4.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/services/x11/desktop-managers/kde4.nix b/modules/services/x11/desktop-managers/kde4.nix index cf4faef223f..5ed501e4b02 100644 --- a/modules/services/x11/desktop-managers/kde4.nix +++ b/modules/services/x11/desktop-managers/kde4.nix @@ -47,7 +47,13 @@ in ''; }; - security.setuidPrograms = [ "kcheckpass" ]; + security.setuidOwners = [ { + program = "kcheckpass"; + source = "${pkgs.kde4.kdebase_workspace}/lib/kde4/libexec/kcheckpass"; + owner = "root"; + group = "root"; + setuid = true; + } ]; environment = { kdePackages = [