Skip to content

audit_flags_fm_configure fix script no longer working #604

@rs1278

Description

@rs1278

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions