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