From 12cc02bfedf01e314f9799c6791edd62883cff6b Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Fri, 6 Oct 2023 21:03:23 -0400 Subject: [PATCH] nixos/security/wrappers: don't force PIE hardening PIE causes problems with static binaries on ARM (see 76552e9). It is enabled by default on other platforms anyway when musl is used, so we don't need to specify it manually. --- nixos/modules/security/wrappers/wrapper.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/modules/security/wrappers/wrapper.nix b/nixos/modules/security/wrappers/wrapper.nix index da2fca98d5c59..27d46c630af54 100644 --- a/nixos/modules/security/wrappers/wrapper.nix +++ b/nixos/modules/security/wrappers/wrapper.nix @@ -5,7 +5,6 @@ stdenv.mkDerivation { name = "security-wrapper"; buildInputs = [ linuxHeaders ]; dontUnpack = true; - hardeningEnable = [ "pie" ]; CFLAGS = [ ''-DSOURCE_PROG="${sourceProg}"'' ] ++ (if debug then [