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, Sep 23, 2:00 AM
Unknown Object (File)
Tue, Sep 22, 1:09 PM
Unknown Object (File)
Mon, Sep 21, 1:51 PM
Unknown Object (File)
Sat, Sep 19, 11:13 PM
Unknown Object (File)
Mon, Sep 14, 11:47 PM
Unknown Object (File)
Sat, Sep 12, 1:39 PM
Unknown Object (File)
Sat, Sep 12, 1:34 PM
Unknown Object (File)
Sun, Sep 6, 4:27 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66675
Build 63558: arc lint + arc unit