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
F146071359: D52272.id161238.diff
Fri, Feb 27, 1:39 PM
Unknown Object (File)
Sun, Feb 15, 7:23 PM
Unknown Object (File)
Sat, Feb 14, 9:26 PM
Unknown Object (File)
Thu, Feb 12, 2:32 PM
Unknown Object (File)
Mon, Feb 9, 6:44 PM
Unknown Object (File)
Sun, Feb 8, 12:09 AM
Unknown Object (File)
Sat, Feb 7, 10:50 PM
Unknown Object (File)
Sat, Feb 7, 9:30 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