[Bug 1491187] [NEW] mailmanctl check_privs should check effective uid, not real uid

Public bug reported:
Situations can arise where mailmanctl is running with an effective uid of 'mailman' and a real uid of 'root'. Such a situation is if logrotate does 'su mailman mailman' to rotate mailman's logs and then invokes 'mailmanctl reopen' in a postrotate script.
In this case, mailmanctl gets its real uid which is 'root' and then tries to do os.setgroups, but the effective uid is 'mailman' which doesn't have permission to set groups.
** Affects: mailman Importance: Medium Assignee: Mark Sapiro (msapiro) Status: In Progress

** Branch linked: lp:mailman/2.1
** Branch linked: lp:~pydotorg/mailman/production21

** Changed in: mailman Status: In Progress => Fix Released
** Changed in: mailman Milestone: 2.1.21 => 2.1.21rc1
participants (2)
-
Launchpad Bug Tracker
-
Mark Sapiro