# This patch file, files created by its use and not subject to other copyright # and any changes in other files generated by its use are # Copyright (C) 2000-2003 by the Free Software Foundation, Inc. # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # This patch file is Free Software and permission is granted to copy and # redistribute it in original or modified form under the terms of the # GNU General Public License (GPL). # See the GPL COPYING files accompanying Mailman distributions this # patch was intended to work in conjunction with for further details. diff -r -u -P mailman-2.1.2/bin/mailmanctl mailman-2.1.2-grpsec/bin/mailmanctl --- mailman-2.1.2/bin/mailmanctl Sat Feb 8 07:13:51 2003 +++ mailman-2.1.2-grpsec/bin/mailmanctl Tue Jul 8 16:51:21 2003 @@ -284,9 +284,11 @@ # which Mailman was configured for, and refuse to run if we didn't coerce # the uid/gid. gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] + groups = [gid] + [x[2] for x in grp.getgrall() if mm_cfg.MAILMAN_USER in x[3]] uid = pwd.getpwnam(mm_cfg.MAILMAN_USER)[2] myuid = os.getuid() if myuid == 0: + os.setgroups(groups) os.setgid(gid) os.setuid(uid) elif myuid <> uid: