Author: arekm                        Date: Wed Jul 22 03:47:28 2009 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
 command-no-chroot as additional acl entry (separated from standard command)

---- Files affected:
pld-builder.new/PLD_Builder:
   request_handler.py (1.45 -> 1.46) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/request_handler.py
diff -u pld-builder.new/PLD_Builder/request_handler.py:1.45 
pld-builder.new/PLD_Builder/request_handler.py:1.46
--- pld-builder.new/PLD_Builder/request_handler.py:1.45 Wed Jul 22 05:28:23 2009
+++ pld-builder.new/PLD_Builder/request_handler.py      Wed Jul 22 05:47:23 2009
@@ -91,6 +91,12 @@
                 lockf.close()
                 return
             if batch.is_command():
+                if "no-chroot" in batch.command_flags:
+                    if not user.can_do("command-no-chroot", bld):
+                        fail_mail("user %s is not allowed to 
command-no-chroot:%s" \
+                                % (user.get_login(), bld))
+                        lockf.close()
+                        return
                 if not user.can_do("command", bld):
                     fail_mail("user %s is not allowed to command:%s" \
                                 % (user.get_login(), bld))
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request_handler.py?r1=1.45&r2=1.46&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to