pub fn doas_conf_has_persist_rule(contents: &str) -> boolExpand description
What: Check whether a parsed doas.conf body has at least one active permit persist rule.
Inputs:
contents: Raw text contents fromdoas.conf.
Output:
trueif a non-comment rule line includes bothpermitandpersist.
Details:
- Ignores blank lines and comments (
# ...). - Uses token matching to avoid false positives from unrelated substrings.