diff options
| author | msapiro | 2007-02-15 19:05:47 +0000 |
|---|---|---|
| committer | msapiro | 2007-02-15 19:05:47 +0000 |
| commit | 8721c5131a01c7b922cde4cd7cd109a7d8f0b48d (patch) | |
| tree | e19ce9f6fb2369fe335e041c2f97d2bbc754bf42 /contrib | |
| parent | 8f9c7714c433f3e6300d9820087af1c267278f29 (diff) | |
| download | mailman-8721c5131a01c7b922cde4cd7cd109a7d8f0b48d.tar.gz mailman-8721c5131a01c7b922cde4cd7cd109a7d8f0b48d.tar.zst mailman-8721c5131a01c7b922cde4cd7cd109a7d8f0b48d.zip | |
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/check_perms_grsecurity.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/check_perms_grsecurity.py b/contrib/check_perms_grsecurity.py index 7c620d3d8..3d0b66e1a 100644 --- a/contrib/check_perms_grsecurity.py +++ b/contrib/check_perms_grsecurity.py @@ -14,7 +14,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Fixes for running Mailman under the `secure-linux' patch or grsecurity. @@ -102,9 +103,9 @@ import grp, pwd from Mailman.mm_cfg import MAILMAN_USER, MAILMAN_GROUP class CheckFixUid: + uid = pwd.getpwnam(MAILMAN_USER)[2] + gid = grp.getgrnam(MAILMAN_GROUP)[2] if os.geteuid() == 0: - uid = pwd.getpwnam(MAILMAN_USER)[2] - gid = grp.getgrnam(MAILMAN_GROUP)[2] os.setgid(gid) os.setuid(uid) if os.geteuid() != uid: |
