summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2021-10-03 11:43:13 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2021-10-03 11:44:57 +0200
commit31790c81dcffee8c267cbc01f16938497ed172af (patch)
tree833ade1312a99c22ac689fe281320d675e9c3fd9 /nixos/modules/programs
parent378d2c5dcec7fef958cca3760448c09a9be2b7a3 (diff)
downloadnixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar.gz
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar.bz2
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar.lz
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar.xz
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.tar.zst
nixpkgs-31790c81dcffee8c267cbc01f16938497ed172af.zip
nixos: make setgid wrappers root-owned
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/ccache.nix2
-rw-r--r--nixos/modules/programs/mosh.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/ccache.nix b/nixos/modules/programs/ccache.nix
index 35a4373f612..0f7fd0a3683 100644
--- a/nixos/modules/programs/ccache.nix
+++ b/nixos/modules/programs/ccache.nix
@@ -28,7 +28,7 @@ in {
 
       # "nix-ccache --show-stats" and "nix-ccache --clear"
       security.wrappers.nix-ccache = {
-        owner = "nobody";
+        owner = "root";
         group = "nixbld";
         setuid = false;
         setgid = true;
diff --git a/nixos/modules/programs/mosh.nix b/nixos/modules/programs/mosh.nix
index 359fe23e0ec..e08099e21a0 100644
--- a/nixos/modules/programs/mosh.nix
+++ b/nixos/modules/programs/mosh.nix
@@ -33,7 +33,7 @@ in
     security.wrappers = mkIf cfg.withUtempter {
       utempter = {
         source = "${pkgs.libutempter}/lib/utempter/utempter";
-        owner = "nobody";
+        owner = "root";
         group = "utmp";
         setuid = false;
         setgid = true;