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)
Tue, Jun 9, 2:15 AM
Unknown Object (File)
Fri, Jun 5, 9:55 AM
Unknown Object (File)
Sat, May 16, 2:43 AM
Unknown Object (File)
Sat, May 16, 2:43 AM
Unknown Object (File)
Sat, May 16, 2:43 AM
Unknown Object (File)
May 5 2026, 6:01 AM
Unknown Object (File)
May 1 2026, 10:47 AM
Unknown Object (File)
Apr 29 2026, 5:32 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