-
Notifications
You must be signed in to change notification settings - Fork 289
audit_flags_fm_configure fix script no longer working #604
Description
Summary
fix script for audit_flags_fm_configure does not work in macOS 15 or macOS 26
Steps to reproduce
running
/usr/bin/grep -qE "^flags.*-fd" /etc/security/audit_control || /usr/bin/sed -i.bak '/^flags/ s/$/,-fd/' /etc/security/audit_control;/usr/sbin/audit -s
does not add ,fd to the file /etc/security/audit_control
Operating System version
macOS 15.7.3
macOS 26.2
Intel or Apple Silicon
Apple Silicon
What is the current bug behavior?
/usr/bin/grep -qE "^flags.*-fd" /etc/security/audit_control
does not add ,fd to the file /etc/security/audit_control, but still returns 0 making the || operator pass without trying the backup command
What is the expected correct behavior?
,fd should be added tr to the file /etc/security/audit_control
Relevant logs and/or screenshots
n/a
Output of checks
audit_flags_fm_configure failed (Result: 0, Expected: "{'integer': 1}")
Running the command to configure the settings for: audit_flags_fm_configure ...
Trigger sent.
Possible fixes
use this command instead (omit the part before the ||)
/usr/bin/sed -i.bak '/^flags/ s/$/,-fd/' /etc/security/audit_control;/usr/sbin/audit -s