-
Notifications
You must be signed in to change notification settings - Fork 289
Tailoring system_settings_screensaver_ask_for_password_delay_enforce $ODV=0 does not create a custom rule #618
Description
Summary
When tailoring a baseline, the rule system_settings_screensaver_ask_for_password_delay_enforce asks for an $ODV. Entering "0" as the $ODV does not result in creating a custom value in /custom/rules. Rather, it treats it as accepting the default recommended value of "5".
Steps to reproduce
On the tahoe branch:
- Run the generate_baseline.py -k {baseline} -t script to tailor a chosen baseline.
- When asked to include the rule system_settings_screensaver_ask_for_password_delay_enforce, enter "y"
- When asked for an $ODV, enter "0"
- Complete tailoring the baseline.
- A custom rule for system_settings_screensaver_ask_for_password_delay_enforce is not found in custom/rules.
Operating System version
macOS 26.2 (25C56)
Intel or Apple Silicon
Apple Silicon Mac (M1 Max)
What is the current bug behavior?
A custom rule is not generated in custom/rules for system_settings_screensaver_ask_for_password_delay_enforce when tailoring the $ODV to "0".
What is the expected correct behavior?
A custom $ODV value for the system_settings_screensaver_ask_for_password_delay_enforce rule should be found in custom/rules
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
(Paste any output that occurs with the bug)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)