aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2020-07-05 05:19:34 +0200
committerBernhard M. Wiedemann <bwiedemann@suse.de>2020-07-05 13:41:50 +0200
commit20e63078f0b3034d88cf0c2a001236cec4e12441 (patch)
tree1ecbe9fc19e51e72377b3e21baf1daaa080d7197
parent25c3a290042a75e26b606c9a961734f2f71cf1e1 (diff)
downloadafl++-20e63078f0b3034d88cf0c2a001236cec4e12441.tar.gz
Fix generation of afl-system-config.8
and afl-whatsup.8 Without this patch, afl-system-config.8 varied between build hosts because it contained lines such as ./afl-system-config: line 30: sysctl: command not found ./afl-system-config: line 31: /sys/kernel/mm/transparent_hugepage/enabled: Permission denied It is recommended to boot the kernel with lots of security off See https://reproducible-builds.org/ for why this matters. afl-system-config.8 is generated by the %.8 target in GNUmakefile that calls commands with -hh to fill the OPTIONS section of man-pages. This PR was done while working on reproducible builds for openSUSE.
-rwxr-xr-xafl-system-config2
-rwxr-xr-xafl-whatsup2
2 files changed, 2 insertions, 2 deletions
diff --git a/afl-system-config b/afl-system-config
index 1e180d8b..34db61aa 100755
--- a/afl-system-config
+++ b/afl-system-config
@@ -1,5 +1,5 @@
#!/bin/sh
-test "$1" = "-h" && {
+test "$1" = "-h" -o "$1" = "-hh" && {
echo 'afl-system-config by Marc Heuse <mh@mh-sec.de>'
echo
echo $0
diff --git a/afl-whatsup b/afl-whatsup
index 1a276964..1f3a8219 100755
--- a/afl-whatsup
+++ b/afl-whatsup
@@ -20,7 +20,7 @@
echo "$0 status check tool for afl-fuzz by Michal Zalewski"
echo
-test "$1" = "-h" && {
+test "$1" = "-h" -o "$1" = "-hh" && {
echo $0 [-s] output_directory
echo
echo Options: