hardening: ld wrapper changes, setup-hook, etc

This commit is contained in:
Charles Strahan
2018-03-06 19:21:10 -05:00
parent 634c748050
commit 806edaa0a2
8 changed files with 46 additions and 40 deletions
@@ -83,6 +83,10 @@ do
fi
done
# If unset, assume the default hardening flags.
: ${NIX_HARDENING_ENABLE="fortify stackprotector pic strictoverflow format relro bindnow"}
export NIX_HARDENING_ENABLE
# No local scope in sourced file
unset -v role_pre role_post cmd upper_case
set +u