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)
Thu, Mar 12, 3:22 PM
Unknown Object (File)
Wed, Mar 11, 4:28 AM
Unknown Object (File)
Sat, Mar 7, 5:33 PM
Unknown Object (File)
Fri, Feb 27, 1:39 PM
Unknown Object (File)
Feb 15 2026, 7:23 PM
Unknown Object (File)
Feb 14 2026, 9:26 PM
Unknown Object (File)
Feb 12 2026, 2:32 PM
Unknown Object (File)
Feb 9 2026, 6:44 PM
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