From 26a4001a98322ab903b8186b97f33c5b282828a5 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Thu, 12 Jun 2014 23:45:42 +0000 Subject: [PATCH] nixos: add setuid wrappers for some networked filesystems' helpers So that `user` mount option would work allowing normal users to mount and umount stuff marked with it in `fileSystems..options`. --- nixos/modules/security/setuid-wrappers.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/security/setuid-wrappers.nix b/nixos/modules/security/setuid-wrappers.nix index 373afffd3fb5..22dbdf6a6bf4 100644 --- a/nixos/modules/security/setuid-wrappers.nix +++ b/nixos/modules/security/setuid-wrappers.nix @@ -77,7 +77,9 @@ in config = { security.setuidPrograms = - [ "fusermount" "wodim" "cdrdao" "growisofs" ]; + [ "mount.nfs" "mount.nfs4" "mount.cifs" + "fusermount" "umount" + "wodim" "cdrdao" "growisofs" ]; system.activationScripts.setuid = let