Skip to content

Commit

Permalink
systemd: disable stackprotector via hardeningDisable
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Feb 11, 2018
1 parent 699b04c commit 02dcf84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/os-specific/linux/systemd/default.nix
Expand Up @@ -141,11 +141,12 @@ in
--replace "SYSTEMD_CGROUP_AGENT_PATH" "_SYSTEMD_CGROUP_AGENT_PATH"
'';

hardeningDisable = [ "stackprotector" ];

NIX_CFLAGS_COMPILE =
[ # Can't say ${polkit.bin}/bin/pkttyagent here because that would
# lead to a cyclic dependency.
"-UPOLKIT_AGENT_BINARY_PATH" "-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\""
"-fno-stack-protector"

# Set the release_agent on /sys/fs/cgroup/systemd to the
# currently running systemd (/run/current-system/systemd) so
Expand Down

0 comments on commit 02dcf84

Please sign in to comment.