diff options
author | David Carlier <devnexen@gmail.com> | 2019-09-29 12:30:10 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2019-09-29 12:30:10 +0100 |
commit | 2109d372988d301c543ac2454abe194e337642c8 (patch) | |
tree | b94f928cc31ccc34851b322a467ceba90825edfa /afl-system-config | |
parent | fb31a3bf2ed74ff0940017c3d81f36814ea1175f (diff) | |
download | afl++-2109d372988d301c543ac2454abe194e337642c8.tar.gz |
NetBSD various support improvements
Diffstat (limited to 'afl-system-config')
-rwxr-xr-x | afl-system-config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/afl-system-config b/afl-system-config index 5e3103b6..a6e0efa4 100755 --- a/afl-system-config +++ b/afl-system-config @@ -48,6 +48,12 @@ 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 |