-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
gunicorn/util.py set_owner_process Mangling gid on RHEL8 + Google Cloud Platform (very large int group id) #3212
Comments
Fairly certain that was a spot-fix for a bug that no longer appears on any supported system/version. |
@pajod care to elaborate? We need to be abble to set user and group to detach worker process and handle permissions approriately. Unsure what you mean there |
This bug (and the WSL2 chown problem) should simply not affect those already running Gunicorn unprivileged. If Gunicorn was not provided with a setting for uid/gid changes, it should also never fail in setgid/setgid/setgroups/chown/initgroups calls.
|
Python 2.x is not supported anymore, let's remove this extra feature. fix benoitc#3212
Python 2.x is not supported anymore, let's remove this extra feature. fix benoitc#3212
Python 2.x is not supported anymore, let's remove this extra feature. fix benoitc#3212
I'm using Python 3.9.18 on Red Hat Enterprise Linux 8. My uid and gid values are crazy high under RHEL8 and Google Cloud Platform. As a result, they are hitting a hard coded condition within gunicorn/util.py
151 # versions of python < 2.6.2 don't manage unsigned int for
152 # groups like on osx or fedora
153 gid = abs(gid) & 0x7FFFFFFF
Where my gid is being changed from 4133075255 to 1985591607 and then because they don't match, gid is attempted to be set and gunicorn dies because I'm not a priveledged user and I don't have permission to set gid (which is only firing off because my gid was unjustly molested 👎)
The text was updated successfully, but these errors were encountered: