From 2109d372988d301c543ac2454abe194e337642c8 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 29 Sep 2019 12:30:10 +0100 Subject: NetBSD various support improvements --- afl-system-config | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'afl-system-config') 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 -- cgit 1.4.1