Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144350065
D52261.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
D52261.diff
View Options
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -2944,8 +2944,11 @@
cred = crhold(p->p_ucred);
PROC_UNLOCK(p);
- error = SYSCTL_OUT(req, cred->cr_groups,
- cred->cr_ngroups * sizeof(gid_t));
+ error = SYSCTL_OUT(req, &cred->cr_gid, sizeof(gid_t));
+ if (error == 0)
+ error = SYSCTL_OUT(req, cred->cr_groups,
+ cred->cr_ngroups * sizeof(gid_t));
+
crfree(cred);
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 12:00 AM (14 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28512840
Default Alt Text
D52261.diff (468 B)
Attached To
Mode
D52261: 'kern.proc.groups' sysctl knob: Restore outputting the effective GID
Attached
Detach File
Event Timeline
Log In to Comment