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)
Fri, Oct 10, 5:31 PM
Unknown Object (File)
Fri, Oct 10, 5:31 PM
Unknown Object (File)
Fri, Oct 10, 5:31 PM
Unknown Object (File)
Fri, Oct 10, 12:22 PM
Unknown Object (File)
Fri, Sep 26, 12:23 AM
Unknown Object (File)
Thu, Sep 25, 11:20 PM
Unknown Object (File)
Fri, Sep 19, 7:28 PM
Unknown Object (File)
Thu, Sep 18, 1:52 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