mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-16 22:12:08 +00:00
refactor[rules]: Fixed xpath
Updated xpath to output all keys equaling DisabledPreferencePanes. This fixes if there are multiple profiles setting the same key. Issue #193
This commit is contained in:
@@ -5,7 +5,7 @@ discussion: |
|
||||
|
||||
Disabling the system setting prevents login to Apple ID and iCloud.
|
||||
check: |
|
||||
/usr/bin/profiles show -output stdout-xml | /usr/bin/xmllint --xpath 'string(//*[contains(text(), "DisabledSystemSettings")]/following-sibling::*[1])' - | /usr/bin/grep -c com.apple.systempreferences.AppleIDSettings
|
||||
/usr/bin/profiles show -output stdout-xml | /usr/bin/xmllint --xpath '//key[text()="DisabledSystemSettings"]/following-sibling::*[1]' - | /usr/bin/grep -c com.apple.systempreferences.AppleIDSettings
|
||||
result:
|
||||
integer: 1
|
||||
fix: |
|
||||
|
||||
Reference in New Issue
Block a user