~ubuntu-branches/ubuntu/quantal/gunicorn/quantal

« back to all changes in this revision

Viewing changes to debian/patches/01-drop-supplemental-groups.diff

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2012-10-11 23:06:29 UTC
  • mfrom: (22.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121011230629-zd2zp8v4bm36k4cb
Tags: 0.14.5-3ubuntu1
revert undocumented broken dh_python2 conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff --git a/gunicorn/util.py b/gunicorn/util.py
 
2
index e919d53..d0e5642 100644
 
3
--- a/gunicorn/util.py
 
4
+++ b/gunicorn/util.py
 
5
@@ -146,6 +146,9 @@ def set_owner_process(uid,gid):
 
6
             # groups like on osx or fedora
 
7
             os.setgid(-ctypes.c_int(-gid).value)
 
8
 
 
9
+        # Also drop supplemental groups
 
10
+        os.setgroups([])
 
11
+
 
12
     if uid:
 
13
         os.setuid(uid)
 
14