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
Unknown Object (File)
Wed, Jan 7, 12:07 AM
Unknown Object (File)
Sat, Dec 20, 11:20 PM
Unknown Object (File)
Dec 7 2025, 11:06 PM
Unknown Object (File)
Dec 7 2025, 5:45 AM
Unknown Object (File)
Nov 26 2025, 1:18 PM
Unknown Object (File)
Nov 20 2025, 11:17 AM
Unknown Object (File)
Nov 2 2025, 4:27 AM
Unknown Object (File)
Oct 31 2025, 7:15 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 Not Applicable
Unit
Tests Not Applicable

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.