fleet/ee/cis/macos-13/test/scripts/CIS_3.2.sh
2023-02-06 13:13:11 -05:00

9 lines
226 B
Bash
Executable File

#!/bin/bash
cp /etc/security/audit_control ./tmp.txt;
origFlags=$(cat ./tmp.txt | grep flags: | grep -v naflags);
sed "s/${origFlags}/flags:-fm,ad,-ex,aa,-fr,lo,-fw/" ./tmp.txt > /etc/security/audit_control;
rm ./tmp.txt;