The Samba-Bugzilla – Attachment 5587 Details for
Bug 7318
set_unix_security_ctx is causing crashes on Solaris 10.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to fix the issue.
set_groups.patch (text/plain), 517 bytes, created by
Ira Cooper
on 2010-04-01 11:23:46 UTC
(
hide
)
Description:
Proposed patch to fix the issue.
Filename:
MIME Type:
Creator:
Ira Cooper
Created:
2010-04-01 11:23:46 UTC
Size:
517 bytes
patch
obsolete
>--- a/source3/smbd/sec_ctx.c >+++ b/source3/smbd/sec_ctx.c >@@ -239,10 +239,13 @@ bool push_sec_ctx(void) > > static void set_unix_security_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups) > { >+ int max = groups_max(); >+ > /* Start context switch */ > gain_root(); > #ifdef HAVE_SETGROUPS >- if (sys_setgroups(gid, ngroups, groups) != 0 && !non_root_mode()) { >+ if (sys_setgroups(gid, (ngroups > max) ? max : ngroups, groups) >+ != 0 && !non_root_mode()) { > smb_panic("sys_setgroups failed"); > } > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7318
: 5587