Page MenuHomeFreeBSD

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

Authored by olce on Nov 15 2024, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 8:11 PM
Unknown Object (File)
Tue, Dec 10, 7:02 PM
Unknown Object (File)
Tue, Dec 10, 2:27 AM
Unknown Object (File)
Sat, Dec 7, 8:13 PM
Unknown Object (File)
Wed, Dec 4, 4:38 AM
Unknown Object (File)
Tue, Nov 26, 10:20 PM
Unknown Object (File)
Tue, Nov 26, 10:20 PM
Unknown Object (File)
Tue, Nov 26, 9:39 PM

Details

Summary

This revision is part of a series. Click on the Stack tab below to see the context.
This series has also been squeezed into D47633 to provide an overall view.

Commit message:
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).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Nov 15 2024, 5:06 PM

Commit message should explain why something was done not (just) what; in this case it the reason is fairly clear from context but still needs the reader to look at the change and understand.

agreed with @emaste on the why I personnally find rule_is_valid easier to understand then rule_applies, but still find rule_applies clear enough so I am ok with the change itself

Commit message should explain why something was done not (just) what; in this case it the reason is fairly clear from context but still needs the reader to look at the change and understand.

Of course. I just thought that this was obvious here (and the diff is tiny). Will add to the description.

This revision is now accepted and ready to land.Nov 19 2024, 8:45 AM