]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
command-no-chroot as additional acl entry (separated from standard command)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 22 Jul 2009 03:47:23 +0000 (03:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/request_handler.py -> 1.46

PLD_Builder/request_handler.py

index 6d7897ee1df5fa34d9eaa7ab7069335147a8561b..78cbc211f9a9394032d5402ecdfb00c32adb58f1 100644 (file)
@@ -91,6 +91,12 @@ def handle_group(r, user):
                 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))
This page took 0.170989 seconds and 4 git commands to generate.