grsecurity test: add note explaining what the tcc -run test accomplishes

This commit is contained in:
Joachim Fasting 2016-07-23 02:29:09 +02:00
parent 8c8d6b4053
commit 88138d43fa
No known key found for this signature in database
GPG key ID: 7544761007FE4E08

View file

@ -32,6 +32,8 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->succeed("${pkgs.paxtest}/lib/paxtest/mprotstack") =~ /Killed/ or die;
};
# tcc -run executes run-time generated code and so allows us to test whether
# paxmark actually works (otherwise, the process should be terminated)
subtest "tcc", sub {
$machine->execute("echo -e '#include <stdio.h>\nint main(void) { puts(\"hello\"); return 0; }' >main.c");
$machine->succeed("${pkgs.tinycc.bin}/bin/tcc -run main.c");