Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #254071 from alois31/plasma-setuid

nixos/plasma5: remove pointless setuid wrappers

authored by K900 and committed by GitHub daebf5c6 20c84e9f

+4 -9
+4 -9
nixos/modules/services/x11/desktop-managers/plasma5.nix
··· 172 172 (mkIf (cfg.enable || cfg.mobile.enable || cfg.bigscreen.enable) { 173 173 174 174 security.wrappers = { 175 - kscreenlocker_greet = { 176 - setuid = true; 175 + kwin_wayland = { 177 176 owner = "root"; 178 177 group = "root"; 179 - source = "${getBin libsForQt5.kscreenlocker}/libexec/kscreenlocker_greet"; 178 + capabilities = "cap_sys_nice+ep"; 179 + source = "${getBin plasma5.kwin}/bin/kwin_wayland"; 180 180 }; 181 + } // mkIf (!cfg.runUsingSystemd) { 181 182 start_kdeinit = { 182 183 setuid = true; 183 184 owner = "root"; 184 185 group = "root"; 185 186 source = "${getBin libsForQt5.kinit}/libexec/kf5/start_kdeinit"; 186 - }; 187 - kwin_wayland = { 188 - owner = "root"; 189 - group = "root"; 190 - capabilities = "cap_sys_nice+ep"; 191 - source = "${getBin plasma5.kwin}/bin/kwin_wayland"; 192 187 }; 193 188 }; 194 189