mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Rule - os_filevault_user_account - Change needed for Apple silicon #285
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 @erefneb on GitHub.
Summary
Rule - os_filevault_user_account.yaml - Create a new user account that will be used to unlock the disk on startup.
Apple Silicon systems do not like: sudo dscl . append /Users/<FileVault_User> AuthenticationAuthority DisabledUser
Once you use DisableUser on M1 that user can no longer unlock FV.
Change the user shell to “/usr/bin/false”
This will work for Intel and Apple silicon.
Steps to reproduce
(How one can reproduce the issue - this is very important)
Operating System version
macOS 11.4 (20F71)
What is the current bug behavior?
Once you use DisableUser on M1 that user can no longer unlock FV.
What is the expected correct behavior?
User should be disabled for login, but should still be able to unlock FileVault.
Possible fixes
Change the user shell to “/usr/bin/false”
This will work for Intel and Apple silicon.
Updated check:
# sudo dscl . -read /Users/<FileVault_User> UserShell | grep "/usr/bin/false"Updated Fix:
# sudo dscl . -create /Users/<FileVault_User> UserShell “/usr/bin/false”@golbiga commented on GitHub:
This rule was removed from and replaced with
os_filevault_authorized_usersinmain.