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
F167776891: D52272.id161238.diff
Mon, Aug 24, 11:26 AM
F167729803: D52272.id162241.diff
Mon, Aug 24, 2:26 AM
Unknown Object (File)
Sun, Aug 23, 7:04 PM
Unknown Object (File)
Sun, Aug 23, 7:04 PM
Unknown Object (File)
Sun, Aug 23, 5:56 PM
Unknown Object (File)
Sun, Aug 23, 4:35 PM
Unknown Object (File)
Sat, Aug 22, 1:22 PM
Unknown Object (File)
Wed, Aug 19, 7:31 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