diff options
author | Samuel E. Moelius III <samuel.moelius@trailofbits.com> | 2023-08-19 11:08:01 -0400 |
---|---|---|
committer | Samuel E. Moelius III <samuel.moelius@trailofbits.com> | 2023-08-19 11:19:07 -0400 |
commit | 71f9999f292ba524a4c67a124c00db4205111350 (patch) | |
tree | b3b81fa82a0d7d947517f0e4f79cb2ead3236923 | |
parent | 80f74934dd413c35fe71c27214d18cfd16de3cce (diff) | |
download | afl++-71f9999f292ba524a4c67a124c00db4205111350.tar.gz |
Adjust use of `sudo`
-rwxr-xr-x | afl-system-config | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-system-config b/afl-system-config index 07d509ff..e64857eb 100755 --- a/afl-system-config +++ b/afl-system-config @@ -114,8 +114,8 @@ if [ "$PLATFORM" = "Darwin" ] ; then echo echo Unloading the default crash reporter SL=/System/Library; PL=com.apple.ReportCrash - launchctl unload -w ${SL}/LaunchAgents/${PL}.plist - sudo launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist + sudo -u "$SUDO_USER" launchctl unload -w ${SL}/LaunchAgents/${PL}.plist + launchctl unload -w ${SL}/LaunchDaemons/${PL}.Root.plist echo fi echo It is recommended to disable System Integrity Protection for increased performance. |