From ad6f0cd9014e13478a622786b9643970bae1c90a Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 27 Jan 2022 05:37:32 +0100 Subject: [PATCH] krebs.setuid: remove security.wrappers's cruft --- krebs/3modules/setuid.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/krebs/3modules/setuid.nix b/krebs/3modules/setuid.nix index 11c5e9d75..b141c7de4 100644 --- a/krebs/3modules/setuid.nix +++ b/krebs/3modules/setuid.nix @@ -80,7 +80,12 @@ with import ; imp = { system.activationScripts."krebs.setuid" = stringAfter [ "wrappers" ] - (concatMapStringsSep "\n" (getAttr "activate") (attrValues config.krebs.setuid)); + (concatMapStringsSep "\n" + (cfg: /* sh */ '' + ${cfg.activate} + rm -f ${cfg.wrapperDir}/${cfg.name}.real + '') + (attrValues config.krebs.setuid)); }; in out