sudoers.d/gbs modified to handle gbs chroot --mount param. 80/19480/2
authorTomasz Olszak <olszak.tomasz@gmail.com>
Sun, 13 Apr 2014 21:47:47 +0000 (23:47 +0200)
committerQiang Z Zhang <qiang.z.zhang@intel.com>
Mon, 21 Apr 2014 02:46:00 +0000 (05:46 +0300)
Change-Id: I2737acbfab70c2e9c2398cfc5822c9fb4cb7b9c5
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
data/gbs

index 42be93c..1f8456b 100644 (file)
--- a/data/gbs
+++ b/data/gbs
@@ -1,7 +1,7 @@
-ALL     ALL=(ALL) NOPASSWD: /bin/mount -o bind * */home/abuild/rpmbuild/BUILD/*
-ALL     ALL=(ALL) NOPASSWD: /bin/umount -l */home/abuild/rpmbuild/BUILD/*
-ALL     ALL=(ALL) NOPASSWD: /bin/umount -l -f */home/abuild/rpmbuild/BUILD/*
-ALL     ALL=(ALL) NOPASSWD: /bin/mkdir -p */home/abuild/rpmbuild/BUILD/*
+ALL     ALL=(ALL) NOPASSWD: /bin/mount -o bind * */scratch.*
+ALL     ALL=(ALL) NOPASSWD: /bin/umount -l */scratch.*
+ALL     ALL=(ALL) NOPASSWD: /bin/umount -l -f */scratch.*
+ALL     ALL=(ALL) NOPASSWD: /bin/mkdir -p */scratch.*
 ALL     ALL=(ALL) NOPASSWD: /usr/bin/build
 ALL     ALL=(ALL) NOPASSWD: /bin/cp *.conf */scratch.*/*.conf
 ALL     ALL=(ALL) NOPASSWD: /bin/rm -f */.build.log