fix paxmark on non-linux (a bug in grsecurity PR #1187)
This commit is contained in:
parent
c1838a27fa
commit
3bcf7124d9
|
@ -12,6 +12,7 @@ cat "$setup" >> $out/setup
|
||||||
sed -e "s^@initialPath@^$initialPath^g" \
|
sed -e "s^@initialPath@^$initialPath^g" \
|
||||||
-e "s^@gcc@^$gcc^g" \
|
-e "s^@gcc@^$gcc^g" \
|
||||||
-e "s^@shell@^$shell^g" \
|
-e "s^@shell@^$shell^g" \
|
||||||
|
-e "s^@needsPax@^$needsPax^g" \
|
||||||
< $out/setup > $out/setup.tmp
|
< $out/setup > $out/setup.tmp
|
||||||
mv $out/setup.tmp $out/setup
|
mv $out/setup.tmp $out/setup
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,19 @@ let
|
||||||
builder = shell;
|
builder = shell;
|
||||||
|
|
||||||
args = ["-e" ./builder.sh];
|
args = ["-e" ./builder.sh];
|
||||||
|
/* TODO: special-cased @var@ substitutions are ugly.
|
||||||
|
However, using substituteAll* from setup.sh seems difficult,
|
||||||
|
as setup.sh can't be directly sourced.
|
||||||
|
Suggestion: split similar utility functions into a separate script.
|
||||||
|
*/
|
||||||
|
|
||||||
setup = setupScript;
|
setup = setupScript;
|
||||||
|
|
||||||
inherit preHook initialPath gcc shell;
|
inherit preHook initialPath gcc shell;
|
||||||
|
|
||||||
|
# Whether we should run paxctl to pax-mark binaries
|
||||||
|
needsPax = result.isLinux && !skipPaxMarking;
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [gcc] ++
|
propagatedUserEnvPkgs = [gcc] ++
|
||||||
lib.filter lib.isDerivation initialPath;
|
lib.filter lib.isDerivation initialPath;
|
||||||
|
|
||||||
|
@ -159,9 +167,6 @@ let
|
||||||
|| system == "armv6l-linux"
|
|| system == "armv6l-linux"
|
||||||
|| system == "armv7l-linux";
|
|| system == "armv7l-linux";
|
||||||
|
|
||||||
# Whether we should run paxctl to pax-mark binaries
|
|
||||||
needsPax = isLinux && !skipPaxMarking;
|
|
||||||
|
|
||||||
# For convenience, bring in the library functions in lib/ so
|
# For convenience, bring in the library functions in lib/ so
|
||||||
# packages don't have to do that themselves.
|
# packages don't have to do that themselves.
|
||||||
inherit lib;
|
inherit lib;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user