From a27f35993d380487d7262055aff0bfc939c235ec Mon Sep 17 00:00:00 2001 From: Parnell Springmeyer Date: Mon, 13 Feb 2017 18:28:13 -0600 Subject: [PATCH] Derp, correctly write the source program's path --- nixos/modules/security/wrappers/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/security/wrappers/default.nix b/nixos/modules/security/wrappers/default.nix index 0548b1d9659..e51103981e6 100644 --- a/nixos/modules/security/wrappers/default.nix +++ b/nixos/modules/security/wrappers/default.nix @@ -27,7 +27,7 @@ let mkSetcapProgram = { program , capabilities - , source ? null + , source , owner ? "nobody" , group ? "nogroup" , ... @@ -35,7 +35,7 @@ let assert (lib.versionAtLeast (lib.getVersion config.boot.kernelPackages.kernel) "4.3"); '' cp ${securityWrapper}/bin/security-wrapper $wrapperDir/${program} - echo -n "$source" > $wrapperDir/${program}.real + echo -n "${source}" > $wrapperDir/${program}.real # Prevent races chmod 0000 $wrapperDir/${program} @@ -53,7 +53,7 @@ let ###### Activation script for the setuid wrappers mkSetuidProgram = { program - , source ? null + , source , owner ? "nobody" , group ? "nogroup" , setuid ? false @@ -63,7 +63,7 @@ let }: '' cp ${securityWrapper}/bin/security-wrapper $wrapperDir/${program} - echo -n "$source" > $wrapperDir/${program}.real + echo -n "${source}" > $wrapperDir/${program}.real # Prevent races chmod 0000 $wrapperDir/${program}