summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-04-16 17:23:27 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-27 19:50:16 +0200
commit308729dd86712dfdecec7e214b6bca87261b1718 (patch)
tree86ce00551fd7c321a77dc457dd40a9701eaaba2d
parent6a243e39a69b4352c76515a490d735fe256524f7 (diff)
downloadjenkins.debian.net-308729dd86712dfdecec7e214b6bca87261b1718.tar.xz
Sudoers for schroot support
-rw-r--r--etc/sudoers.d/jenkins6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins
index c7d0e1c9..fe6f4389 100644
--- a/etc/sudoers.d/jenkins
+++ b/etc/sudoers.d/jenkins
@@ -1,9 +1,15 @@
jenkins ALL= \
NOPASSWD: /usr/sbin/debootstrap *, \
+ tee /chroots/*, \
+ tee /etc/schroot/chroot.d/*, \
+ chmod +x /chroots/*, \
/usr/sbin/chroot /chroots/*, \
/usr/sbin/chroot /media/*, \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
+ /bin/rm -rf --one-file-system /schroots/*, \
+ /bin/mv /chroots/* /schroots/*, \
+ /bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
/bin/umount -l /media/*, \
/bin/mount -o loop*, \