mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
fix osquery query used to determine MDM disk encryption status (#10901)
This commit is contained in:
parent
cc57016f02
commit
f253475b32
1 changed files with 1 additions and 2 deletions
|
|
@ -572,8 +572,7 @@ var mdmQueries = map[string]DetailQuery{
|
|||
// > location at any time.
|
||||
//
|
||||
// [1]: https://developer.apple.com/documentation/devicemanagement/fderecoverykeyescrow
|
||||
Query: fmt.Sprintf(`SELECT to_base64(group_concat(line, x'0a')) as filevault_key,
|
||||
(%s) as encrypted FROM file_lines WHERE path='/var/db/FileVaultPRK.dat'`, usesMacOSDiskEncryptionQuery),
|
||||
Query: fmt.Sprintf(`SELECT to_base64(group_concat(line, x'0a')) as filevault_key, COALESCE((%s), 0) as encrypted FROM file_lines WHERE path='/var/db/FileVaultPRK.dat'`, usesMacOSDiskEncryptionQuery),
|
||||
Platforms: []string{"darwin"},
|
||||
DirectIngestFunc: directIngestDiskEncryptionKeyDarwin,
|
||||
Discovery: discoveryTable("file_lines"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue