From c8d405f2064f2bd2e42231c2d8e80377833da30b Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Thu, 7 Aug 2014 12:45:34 +0530 Subject: Allow mounting,unmounting partition image files for jenkins-build user and archiving the same. This is needed to unpack and repack the image into a tarball. Change-Id: I226e3f98c323542cfa8cc82bff1875cb071c9db3 Signed-off-by: Vishal Bhoj --- node/setup-build-android | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/setup-build-android b/node/setup-build-android index 5ea87e4..094d94b 100755 --- a/node/setup-build-android +++ b/node/setup-build-android @@ -141,3 +141,7 @@ sudo apt-get install -y acpica-tools echo "jenkins-build ALL = NOPASSWD: /usr/bin/linaro-android-media-create" >>/etc/sudoers # Allow 'jenkins-build' user to set java version used to build Android echo "jenkins-build ALL = NOPASSWD: /usr/sbin/update-java-alternatives" >>/etc/sudoers +# Allow 'jenkins-build' user to mount, umount img files as well as tar the same with --selinux option. +echo "jenkins-build ALL = NOPASSWD: /bin/mount" >>/etc/sudoers +echo "jenkins-build ALL = NOPASSWD: /bin/umount" >>/etc/sudoers +echo "jenkins-build ALL = NOPASSWD: /bin/tar" >>/etc/sudoers -- cgit v1.2.3