Merge pull request #328653 from arianvp/later-wrappers

nixos/wrappers: use normal mount for /run/wrappers
This commit is contained in:
Arian van Putten 2024-07-20 16:25:47 +02:00 committed by GitHub
commit 94aa31c552
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,11 +255,6 @@ in
umount = mkSetuidRoot "${lib.getBin pkgs.util-linux}/bin/umount";
};
boot.specialFileSystems.${parentWrapperDir} = {
fsType = "tmpfs";
options = [ "nodev" "mode=755" "size=${config.security.wrapperDirSize}" ];
};
# Make sure our wrapperDir exports to the PATH env variable when
# initializing the shell
environment.extraInit = ''
@ -275,6 +270,17 @@ in
mrpx ${wrap.source},
'') wrappers;
systemd.mounts = [{
where = parentWrapperDir;
what = "tmpfs";
type = "tmpfs";
options = lib.concatStringsSep "," ([
"nodev"
"mode=755"
"size=${config.security.wrapperDirSize}"
]);
}];
systemd.services.suid-sgid-wrappers = {
description = "Create SUID/SGID Wrappers";
wantedBy = [ "sysinit.target" ];