HomeFreeBSD

MAC/do: Rename rule_is_valid() => rule_applies()

Description

MAC/do: Rename rule_is_valid() => rule_applies()

This function checks whether a rule applies in the current context,
i.e., if the subject's users/groups match that of the rule. By
contrast, it doesn't check if the rule as specified by the user is valid
(i.e., consistent).

Reviewed by: bapt
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47592

Details

Provenance
olceAuthored on Jul 1 2024, 1:24 PM
Reviewer
bapt
Differential Revision
D47592: MAC/do: Rename rule_is_valid() => rule_applies()
Parents
rG2200a3ec711b: MAC/do: parse_rules(): Copy input string on its own
Branches
Unknown
Tags
Unknown