Skip to content

Commit

Permalink
ESRF addition to creating processes with all GIDs.
Browse files Browse the repository at this point in the history
At ESRF we need data acquisition process to create files with read and write permissions for all groups of the user.
  • Loading branch information
fatboy92 authored Mar 18, 2024
1 parent 9ee5fee commit 7f9f10e
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 7f9f10e

Please sign in to comment.