Significantly clarify. Replace references to cr_canseeotheruids(9) by ones to
cr_bsd_visible(9).
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
It is unusual to have a man page for a static function; I cannot think of any other example. Given the history of this page and its siblings, I think it is fine to keep it, but an argument could be made to only keep cr_bsd_visible(9).
share/man/man9/cr_canseeothergids.9 | ||
---|---|---|
51 | Only a suggestion. | |
52 | ||
71–77 | I see the inaccuracy of the previous description, but what you have written is not a complete sentence. Even though it is a sensible short-hand, the prevailing style for this section is to be explicit. My suggestion: The .Fn cr_canseeothergids function returns 0 if the policy is disabled, the credentials share at least one common group, or if .Fa u1 has privilege exempting it from the policy. Otherwise, it returns .Er ESRCH . |
I understand, but given that these man pages have been around for 20+ years, maybe keeping them for now is the less disruptive path. We could remove them in a few releases.
share/man/man9/cr_canseeothergids.9 | ||
---|---|---|
51 | I'd prefer to leave that out, for several reasons. First, static is a C implementation detail, rather than the intent itself. Second, it works only for functions defined and used in the same translation unit, so applies almost always to functions defined and used in a single one. If that state changes, we would need to change the manpage as well. Granted, that's not a big one, but given the frequency with which this page has been updated in the past... |