Page MenuHomeFreeBSD

cr_canseeothergids(): Make the logic easier to grasp
ClosedPublic

Authored by olce on Aug 29 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 9:25 AM
Unknown Object (File)
Sun, Nov 16, 3:47 AM
Unknown Object (File)
Sat, Nov 15, 10:18 PM
Unknown Object (File)
Oct 29 2025, 4:23 AM
Unknown Object (File)
Oct 29 2025, 4:23 AM
Unknown Object (File)
Oct 29 2025, 4:23 AM
Unknown Object (File)
Oct 29 2025, 4:14 AM
Unknown Object (File)
Oct 28 2025, 3:11 AM
Subscribers

Details

Summary

Revert the initial test on whether the policy is in force so that, if
there are no restrictions, the function bails out early, allowing to
de-indent the rest of the code and have it finish with a non-zero (deny)
'return'.

No functional change (intended).

Sponsored by: The FreeBSD Foundation

Diff Detail

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