grsecurity: Add paxctl, paxmark and stdenv.needsPax to stdenv

This commit is contained in:
Ricardo M. Correia
2014-05-15 13:25:46 +02:00
parent 4be7e939a0
commit 8d5ce245a2
3 changed files with 21 additions and 2 deletions
+13
View File
@@ -93,6 +93,7 @@ PATH=
for i in $NIX_GCC @initialPath@; do
if [ "$i" = / ]; then i=; fi
addToSearchPath PATH $i/bin
addToSearchPath PATH $i/sbin
done
if [ "$NIX_DEBUG" = 1 ]; then
@@ -293,6 +294,18 @@ stripDirs() {
fi
}
# PaX-mark binaries
paxmark() {
local flags="$1"
shift
if [ -z "@needsPax@" ]; then
return
fi
paxctl -c "$@"
paxctl -zex -${flags} "$@"
}
######################################################################
# Textual substitution functions.