diff options
Diffstat (limited to 'afl-system-config')
| -rwxr-xr-x | afl-system-config | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/afl-system-config b/afl-system-config index 6a495f0a..a6e0efa4 100755 --- a/afl-system-config +++ b/afl-system-config @@ -48,5 +48,19 @@ if [ "$PLATFORM" = "OpenBSD" ] ; then echo echo 'System security features cannot be disabled on OpenBSD.' fi +if [ "$PLATFORM" = "FreeBSD" ] ; then +echo +echo It is recommended to enable unprivileged users to set cpu affinity +to be able to use afl-gotcpu meaningfully. +/sbin/sysctl -w security.models.extensions.user_set_cpu_affinity=1 +fi +if [ "$PLATFORM" = "Darwin" ] ; then + if [ $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ] ; then +echo We unload the default crash reporter here +SL=/System/Library; PL=com.apple.ReportCrash +launchctl unload -w ${SL}/LaunchAgents/${PL}.plist +sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist + fi +fi echo echo Also use AFL_TMPDIR to use a tmpfs for the input file |
