Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144357035
D52258.id161224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D52258.id161224.diff
View Options
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -2610,11 +2610,13 @@
int structsize;
p = arg;
- size = sizeof(structsize) + p->p_ucred->cr_ngroups * sizeof(gid_t);
+ size = sizeof(structsize) +
+ (1 + p->p_ucred->cr_ngroups) * sizeof(gid_t);
if (sb != NULL) {
KASSERT(*sizep == size, ("invalid size"));
structsize = sizeof(gid_t);
sbuf_bcat(sb, &structsize, sizeof(structsize));
+ sbuf_bcat(sb, &p->p_ucred->cr_gid, sizeof(gid_t));
sbuf_bcat(sb, p->p_ucred->cr_groups, p->p_ucred->cr_ngroups *
sizeof(gid_t));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 12:45 AM (4 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28495093
Default Alt Text
D52258.id161224.diff (617 B)
Attached To
Mode
D52258: imgact_elf: procstat groups: Restore sending the effective GID
Attached
Detach File
Event Timeline
Log In to Comment