dtrace: Fix effective GID shown by 'curpsinfo'

Reviewed by:    emaste
Fixes:          be1f7435ef ("kern: start tracking cr_gid outside of cr_groups[]")
MFC after:      5 days
MFC to:         stable/15
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52274
This commit is contained in:
Olivier Certner committed 2025-09-17 14:16:00 +02:00
1 parent 580d2d4295
commit e4cc7f9930
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ translator psinfo_t < struct proc *T > {
pr_uid = T->p_ucred->cr_ruid;
pr_euid = T->p_ucred->cr_uid;
pr_gid = T->p_ucred->cr_rgid;
pr_egid = T->p_ucred->cr_groups[0];
pr_egid = T->p_ucred->cr_gid;
pr_addr = 0;
pr_psargs = (T->p_args == 0) ? "" :
memstr(T->p_args->ar_args, ' ', T->p_args->ar_length);