]> granicus.if.org Git - zfs/commit
Add paxcheck make lint target
authorJason Zaman <jasonzaman@gmail.com>
Fri, 28 Oct 2016 23:10:00 +0000 (07:10 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Oct 2016 23:10:00 +0000 (16:10 -0700)
commitf26eb428622a6f3dc613d81faf905958e231e8b1
tree75c2c768a8ae327f0acf6175245e6fb8303d03d4
parentc6a89b58a997a2b2c672542542e675447efcf4e4
Add paxcheck make lint target

This uses scanelf (from pax-utils) to check for any issues with the
binaries. It currently checks for executable stacks and textrels.
The checks are in a script so can be extended easily in the future for
more checks.

Executable stacks and textrels are frequently caused by issues in asm
files and lead to security and perf problems.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jason Zaman <jason@perfinion.com>
Closes #5338
Makefile.am
scripts/paxcheck.sh [new file with mode: 0755]