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

(cherry picked from commit ccae2774897c1f8bb11f696d5895fb686db98176)

Details

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