-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mod_ruid2 ERROR getgroups() #5
Comments
If you need more supplementary groups increase the RUID_MAXGROUPS value is your best option at this moment. Dynamic allocation of supplementary groups space sounds tempting but, is pretty complicated. Your proposed patch for example is dangerous if per directory config is used and may lead to buffer overflows if the number of groups in the directory section <> startup groups. |
I understand, but when the groups are hundreds, and they grow, it seems to me a waste of time having to remember to check the groups number, then recompile etc. I larned malloc about 25 years ago (this does not mean I remember how to use it :)
I propose another patch related with the one above, because IMHO if the admin asks for STAT, then he wants to be sure that the process runs with uid/gid of the file, not supplementary process groups (see comment in the patch:)
Thank you for the attention. |
Hi all
In my setup the apache user belogns to several groups more than 8 which is the edfault RUID_MAXGROUPS value.
So I get errors "getgroups() failed on child init, ignoring supplementary group IDs" and the process groups are not reset correctly. I could recompile with a higher RUID_MAXGROUPS value, but I prefered to try a simple patch which seems to work. Maybe it (or something like that) could be included?
Thank you
The text was updated successfully, but these errors were encountered: