From acd64c277e445e74e32a9cf135c25900369fd017 Mon Sep 17 00:00:00 2001 From: Pris Nasrat Date: Tue, 7 Feb 2023 10:35:19 -0500 Subject: [PATCH] Drop supplemental groups in install testing --- integration-tests/test_install.py | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-tests/test_install.py b/integration-tests/test_install.py index 866769e..4dfa9eb 100644 --- a/integration-tests/test_install.py +++ b/integration-tests/test_install.py @@ -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)