mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-08 15:59:55 +00:00
Create a script who doesn't need answer to fix non compliant settings #190
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 @louisdchrf on GitHub.
Problem to solve
The compliance script need a human to launch the fix of non compliant settings
Intended users
Mac admins using MacDeployServer to deploy Macs. Script can be run during the deployment but automatically. If a script need a answer, deployment is crashing
Further details
In case where people doesn't use MDM or can sign a configuration profile
Proposal
Add a argument for launching the script, like
sudo ./build/800-53r5_low/800-53r5_low_compliance.sh -apply-compliant
Documentation
Testing
What does success look like, and how can we measure that?
Links / references
@robertgendler commented on GitHub:
sudo ./build/800-53r5_low/800-53r5_low_compliance.sh --fixis what you're looking for.@louisdchrf commented on GitHub:
Nice argument, I didn't see this on the wiki
@golbiga commented on GitHub:
Actually you might want to use the
--cfcflag. This will do a check, fix, check.