summaryrefslogtreecommitdiffstats
path: root/etc
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-25 12:48:41 +0200
commit25ef142d96e31850fb163033d1f4555c643475a1 (patch)
treebc834d7097777e3dd88490deeea7cd3bf3f6c540 /etc
parent2225384249c854e2dba4187c61db31857e8eb371 (diff)
downloadjenkins.debian.net-25ef142d96e31850fb163033d1f4555c643475a1.tar.xz
Sudoers for schroot support
Diffstat (limited to 'etc')
-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*, \