Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177905006
D52258.1795556080.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
617 B
Referenced Files
None
Subscribers
None
D52258.1795556080.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
Tue, Nov 24, 9:34 PM (8 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41964447
Default Alt Text
D52258.1795556080.diff (617 B)
Attached To
Mode
D52258: imgact_elf: procstat groups: Restore sending the effective GID
Attached
Detach File
Event Timeline