Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154319198
D52261.id161227.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.id161227.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
Tue, Apr 28, 7:46 PM (14 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32302142
Default Alt Text
D52261.id161227.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