Update policy template for "Are guest users disabled on macOS devices?" (#3431)

* Update policy's `query` by setting `value = 1` instead of `value = 0`. This way, hosts with guest users disabled respond with "Yes".
This commit is contained in:
Noah Talerman 2021-12-21 08:20:47 -08:00 committed by GitHub
parent 27691fe82a
commit 7f5b3cc15c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,18 +68,18 @@ export const DEFAULT_POLICIES = [
{
key: 6,
query:
"SELECT 1 FROM managed_policies WHERE domain = 'com.apple.MCX' AND name = 'DisableGuestAccount' AND value = 0 LIMIT 1;",
name: "Are guest users not activated on macOS devices?",
"SELECT 1 FROM managed_policies WHERE domain = 'com.apple.MCX' AND name = 'DisableGuestAccount' AND value = 1 LIMIT 1;",
name: "Are guest users disabled on macOS devices?",
description:
"Required: Youre already enforcing a policy via Moble Device Management (MDM). Checks to make sure that guest accounts cannot be used to log in to the device without a password.",
resolution:
"The following example profile includes a setting to disable automatic login: https://github.com/gregneagle/profiles/blob/fecc73d66fa17b6fa78b782904cb47cdc1913aeb/loginwindow.mobileconfig#L68-L71",
"The following example profile includes a setting to disable guest users: https://github.com/gregneagle/profiles/blob/fecc73d66fa17b6fa78b782904cb47cdc1913aeb/loginwindow.mobileconfig#L68-L71",
platform: "darwin",
},
{
key: 7,
query:
"SELECT 1 FROM managed_policies WHERE domain = 'com.apple.Terminal' AND name = 'SecureKeyboardEntry' AND value=1 LIMIT 1;",
"SELECT 1 FROM managed_policies WHERE domain = 'com.apple.Terminal' AND name = 'SecureKeyboardEntry' AND value = 1 LIMIT 1;",
name: "Is secure keyboard entry enabled on macOS devices?",
description:
"Required: Youre already enforcing a policy via Moble Device Management (MDM). Checks to make sure that the Secure Keyboard Entry setting is enabled.",