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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user