add-hardening.sh: fix quotation

This commit is contained in:
Robin Gloster 2016-08-23 15:25:26 +00:00
parent 335d0097cf
commit 07604ad631

View File

@ -46,11 +46,11 @@ if [[ ! $hardeningDisable == "all" ]]; then
;;
relro)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling relro >&2; fi
hardeningLDFlags+=('-z relro')
hardeningLDFlags+=('-z' 'relro')
;;
bindnow)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling bindnow >&2; fi
hardeningLDFlags+=('-z now')
hardeningLDFlags+=('-z' 'now')
;;
*)
echo "Hardening flag unknown: $flag" >&2