mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
os_airdrop_disable check and remediation are inconsistent #287
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 @noambernstein on GitHub.
Originally assigned to: @golbiga on GitHub.
Summary
The profile entries that os_airdrop_disable tests and sets are not consistent
Steps to reproduce
apply the mobileconfig from a baseline that requires os_airdrop_disable, and run the check
Operating System version
11.3.0
What is the current bug behavior?
The remediation action for os_airdrop_disable is to set a mobileconfig with "allowAirDrop: false". However, the test is for "DisableAirDrop = 1"
What is the expected correct behavior?
It appears that "allowAirDrop: false" does disable airdrop, I think the check needs to look for "allowAirDrop = 0"
Possible fixes
Change
ebca093853/rules/os/os_airdrop_disable.yaml (L8)to look for "allowAirDrop = 0"@bernstei commented on GitHub:
Thanks for fixing this in the big_sur branch. How hard would it be to (automatically?) include the issue title in the commit message, rather than just the number?
@golbiga commented on GitHub:
It actually should be DisableAirDrop = 1
ebca093853/rules/os/os_airdrop_disable.yaml (L43-L46)will be adjusted to:
Thanks for bringing this up.
@golbiga commented on GitHub:
Actually after looking though docs, we have the correct settings for the
mobileconfig_info. I'll adjust the check to check forallowAirDrop = 0@golbiga commented on GitHub:
merged with
main