mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
c6a89b58a9
commit
f26eb42862
+6
-1
@@ -55,13 +55,18 @@ shellcheck:
|
||||
done; \
|
||||
fi
|
||||
|
||||
lint: cppcheck
|
||||
lint: cppcheck paxcheck
|
||||
|
||||
cppcheck:
|
||||
@if type cppcheck > /dev/null 2>&1; then \
|
||||
cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \
|
||||
fi
|
||||
|
||||
paxcheck:
|
||||
@if type scanelf > /dev/null 2>&1; then \
|
||||
scripts/paxcheck.sh ${top_srcdir}; \
|
||||
fi
|
||||
|
||||
flake8:
|
||||
@if type flake8 > /dev/null 2>&1; then \
|
||||
flake8 ${top_srcdir}; \
|
||||
|
||||
Reference in New Issue
Block a user