Fix CIS query (#23062)

This commit is contained in:
Sharon Katz 2024-10-22 09:54:19 -04:00 committed by GitHub
parent cc3f4e0bde
commit d8b3a1c7bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 27 deletions

View file

@ -3481,20 +3481,10 @@ spec:
2. The key to include is ShowOverlayStatusBar
3. The key must be set to: <true/>
query: |
SELECT 1 WHERE
EXISTS (
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value = 1 OR value = 'true') AND
username = ''
)
AND NOT EXISTS (
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value != 1 AND value != 'true')
);
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value = 1 OR value = 'true');
purpose: Informational
tags: compliance, CIS, CIS_Level1
contributors: defensivedepth

View file

@ -3462,19 +3462,10 @@ spec:
2. The key to include is ShowOverlayStatusBar
3. The key must be set to: <true/>
query: |
SELECT 1 WHERE
EXISTS (
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value = 1 OR value = 'true')
)
AND NOT EXISTS (
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value != 1 AND value != 'true')
);
SELECT 1 FROM managed_policies WHERE
domain='com.apple.Safari' AND
name='ShowOverlayStatusBar' AND
(value = 1 OR value = 'true');
purpose: Informational
tags: compliance, CIS, CIS_Level1
contributors: defensivedepth