The Samba-Bugzilla – Attachment 7340 Details for
Bug 8773
smbd fails to run as root because it belongs to more than 16 groups on MacOS X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Hack to workaround the NGROUPS_MAX issue
samba-3.6-osx-getgrouplist.patch (text/plain), 612 bytes, created by
LaSombra
on 2012-02-23 01:41:10 UTC
(
hide
)
Description:
Hack to workaround the NGROUPS_MAX issue
Filename:
MIME Type:
Creator:
LaSombra
Created:
2012-02-23 01:41:10 UTC
Size:
612 bytes
patch
obsolete
>--- system.c.orig 2012-02-22 22:46:14.000000000 -0200 >+++ system.c 2012-02-22 22:47:51.000000000 -0200 >@@ -1161,7 +1161,14 @@ > > int groups_max(void) > { >-#if defined(SYSCONF_SC_NGROUPS_MAX) >+#if defined(DARWINOS) >+ /* On OS X, sysconf(_SC_NGROUPS_MAX) returns 16 >+ * due to OS X's group nesting and getgrouplist >+ * will return a flat list; users can exceed the >+ * maximum of 16 groups. And easily will. >+ */ >+ return 32; // NGROUPS_MAX is defined, hence the define above is void. >+#elif defined(SYSCONF_SC_NGROUPS_MAX) > int ret = sysconf(_SC_NGROUPS_MAX); > return (ret == -1) ? NGROUPS_MAX : ret; > #else
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 8773
: 7340 |
7727
|
16805