1
From: Chris Lamb <lamby@debian.org>
2
Date: Tue Oct 16 12:05:35 2012 +0100
3
Subject: 0001-drop-supplemental-groups
6
gunicorn/util.py | 9 +++++++++
7
1 file changed, 9 insertions(+)
9
diff --git a/gunicorn/util.py b/gunicorn/util.py
10
index 9b7529f..6e4e69c 100644
11
--- a/gunicorn/util.py
12
+++ b/gunicorn/util.py
14
# See the NOTICE for more information.
21
@@ -147,6 +148,14 @@ def set_owner_process(uid, gid):
22
# groups like on osx or fedora
23
gid = abs(gid) & 0x7FFFFFFF
26
+ # Also drop supplemental groups
30
+ if e.errno != errno.EPERM: