Skip to content

Tailoring system_settings_screensaver_ask_for_password_delay_enforce $ODV=0 does not create a custom rule #618

@adammfurman

Description

@adammfurman

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:

  1. Run the generate_baseline.py -k {baseline} -t script to tailor a chosen baseline.
  2. When asked to include the rule system_settings_screensaver_ask_for_password_delay_enforce, enter "y"
  3. When asked for an $ODV, enter "0"
  4. Complete tailoring the baseline.
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions