Page MenuHomeFreeBSD

procfs: Restore printing the effective GID in 'status'
ClosedPublic

Authored by olce on Aug 29 2025, 11:02 PM.
Tags
None
Referenced Files
F170316747: D52257.diff
Fri, Sep 4, 7:09 AM
F170208945: D52257.id161223.diff
Thu, Sep 3, 9:24 PM
Unknown Object (File)
Thu, Sep 3, 12:33 AM
Unknown Object (File)
Wed, Sep 2, 7:07 PM
Unknown Object (File)
Wed, Sep 2, 7:07 AM
Unknown Object (File)
Tue, Sep 1, 9:37 PM
Unknown Object (File)
Tue, Sep 1, 12:38 AM
Unknown Object (File)
Mon, Aug 31, 2:26 PM
Subscribers

Details

Summary

Fixes: be1f7435ef218b1d ("kern: start tracking cr_gid outside of cr_groups[]")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66660
Build 63543: arc lint + arc unit

Event Timeline

olce requested review of this revision.Aug 29 2025, 11:02 PM
This revision is now accepted and ready to land.Sep 1 2025, 4:01 PM

Does linprocfs have the same issue? I mean compat/linprocfs/linprocfs.c:1136

In D52257#1194563, @kib wrote:

Does linprocfs have the same issue? I mean compat/linprocfs/linprocfs.c:1136

It doesn't as it already has been printing cr_gid separately, and then the content of cr_groups[].

That also means that before it would output the effective GID twice, but after our changes, the latter will disappear from the "Groups" part if not also a supplementary group. This is actually a "free" bugfix, as Linux does not output the effective GID twice.