Skip to content
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

ESRF addition to creating processes with all GIDs. #1634

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions supervisor/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,8 +1387,10 @@ def drop_privileges(self, user):
gid = pwrec[3]
if hasattr(os, 'setgroups'):
user = pwrec[0]
groups = [grprec[2] for grprec in grp.getgrall() if user in
grprec[3]]
# ESRF addition to creating processes with all GIDs.
# groups = [grprec[2] for grprec in grp.getgrall() if user in
# grprec[3]]
groups = os.getgrouplist(user, pwrec[3])

# always put our primary gid first in this list, otherwise we can
# lose group info since sometimes the first group in the setgroups
Expand Down
Loading