From 25ef142d96e31850fb163033d1f4555c643475a1 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 16 Apr 2014 17:23:27 +0200 Subject: Sudoers for schroot support --- etc/sudoers.d/jenkins | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc/sudoers.d/jenkins') 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*, \ -- cgit v1.2.3-70-g09d2