mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Rule system_settings_softwareupdate_current ODV missing interval #8
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 @jmahlman on GitHub.
Originally assigned to: @golbiga on GitHub.
Summary
The update to the rule
system_settings_softwareupdate_currentis missing the date interval for the ODV check. The/bin/date -v -$ODV "+%s"command expects more than a number ([-v[+|-]val[y|m|w|d|H|M|S]]), so the check will fail.Steps to reproduce
Enable the
system_settings_softwareupdate_currentand note the failure. You can also manually see the issue by running the commands via terminal:Operating System version
macOS Tahoe
Intel or Apple Silicon
Apple Silicon
What is the current bug behavior?
The check will always fail as the
thirty_days_epochvariable always returns a failure.What is the expected correct behavior?
Epochs are compared.
Possible fixes
Update the ODV values: