Revision: 8158
          http://svn.sourceforge.net/mailman/?rev=8158&view=rev
Author:   msapiro
Date:     2007-02-15 11:05:47 -0800 (Thu, 15 Feb 2007)

Log Message:
-----------
Fixed bug # 1660666.

Modified Paths:
--------------
    trunk/mailman/contrib/check_perms_grsecurity.py

Modified: trunk/mailman/contrib/check_perms_grsecurity.py
===================================================================
--- trunk/mailman/contrib/check_perms_grsecurity.py     2007-02-15 02:14:19 UTC 
(rev 8157)
+++ trunk/mailman/contrib/check_perms_grsecurity.py     2007-02-15 19:05:47 UTC 
(rev 8158)
@@ -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 @@
 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:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to