mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Profiles with multiple disabled Pref Panes keys not detected #221
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @K1jaff on GitHub.
Summary
Detections items such as sysprefs_siri_prefpane_disable as not detected if they are included with other pref pane disables, this is because the grep command looks at the whole string which includes a , separator between values:
DisabledPreferencePanes com.apple.preferences.speech com.apple.preferences.wallet=
DisabledPreferencePanes =
(
"com.apple.preferences.speech",
"com.apple.preferences.wallet"
);
Steps to reproduce
Implement Custom Jamf Profile to preference domain com.apple.systempreferences with multiple values
DisabledPreferencePanes com.apple.preferences.speech com.apple.preferences.walletOperating System version
macOS 12.6
What is the current bug behavior?
com.apple.preferences.speech is not detected but com.apple.preferences.wallet is detected.
What is the expected correct behavior?
All strings in the array are detected
Relevant logs and/or screenshots
@robertgendler commented on GitHub:
This is fixed in the OS branches. Please check out the
Montereybranch