mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Drop supplemental groups in install testing
This commit is contained in:
@@ -35,6 +35,7 @@ def setgroup(group):
|
||||
gid = grp.getgrnam(group).gr_gid
|
||||
uid = pwd.getpwnam("nobody").pw_uid
|
||||
os.setgid(gid)
|
||||
os.setgroups([])
|
||||
os.setuid(uid)
|
||||
os.environ["HOME"] = "/tmp/test-home-%i-%i" % (uid, gid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user