2012-11-15 03:20:32 +00:00
|
|
|
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
|
|
|
# All Rights Reserved.
|
2013-01-28 16:20:22 +00:00
|
|
|
#
|
2012-11-15 03:20:32 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
2013-01-28 16:20:22 +00:00
|
|
|
#
|
2012-11-15 03:20:32 +00:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2013-01-28 16:20:22 +00:00
|
|
|
#
|
2012-11-15 03:20:32 +00:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/chmod * /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/dd of=/tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/ln -sf * /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mkdir -p /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mkdir /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount --bind /dev /tmp/*/mnt/dev
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount --bind /tmp/*/hooks /tmp/*/mnt/tmp/in_target.d
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount -o remount\,ro\,bind /tmp/*/hooks /tmp/*/mnt/tmp/in_target.d
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount -t proc none /tmp/*/mnt/proc
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount -t sysfs none /tmp/*/mnt/sys
|
2013-01-28 16:20:22 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount /dev/nbd0* /tmp/*/mnt
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount /dev/loop* /tmp/*/mnt
|
2013-05-29 00:38:51 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount /dev/mapper/loop* /tmp/*/mnt
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mv /tmp/*/mnt/* /tmp/*/mnt/*
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mv -t /tmp/*/mnt /tmp/*/built/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/rm -* /tmp/*/mnt
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/rm -* /tmp/*/mnt/*
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/rm -* /tmp/*/built
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/rmdir /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/tar -C /tmp/*/mnt -xzf /*/.cache/image-create/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/dev
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/proc
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/sys
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/*/mnt/tmp/in_target.d
|
2013-05-23 23:01:50 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/mkfs -E resize=274877906944 -t ext4 -L cloudimg-rootfs /dev/loop*
|
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/mkfs -i 4096 -E resize=274877906944 -t ext4 -L cloudimg-rootfs /dev/loop*
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/modprobe nbd max_part=16
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/sfdisk /dev/nbd*
|
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/sfdisk /dev/loop*
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/qemu-nbd -c /dev/nbd0 --cache=writeback /tmp/*/image
|
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/qemu-nbd -d /dev/nbd0
|
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/touch /tmp/*/mnt/*
|
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/unlink /tmp/*/mnt/*
|
2012-11-27 17:37:57 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/cp -t /tmp/*/mnt/etc/ -a /tmp/*/hooks/first-boot.d
|
2013-02-14 19:36:06 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/install -m 0755 -o root -g root -D */dib-run-parts /tmp/*/mnt/usr/local/bin/dib-run-parts
|
2012-11-09 11:04:13 +00:00
|
|
|
ALL ALL=(root) SETENV: NOPASSWD: /usr/sbin/chroot /tmp/*/mnt *
|
2013-02-13 22:16:00 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/losetup --show -r -f /tmp/*/*.raw
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/losetup --show -f /tmp/*/*.raw
|
2013-02-13 22:16:00 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/losetup -d /dev/loop*
|
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/partprobe /dev/loop*
|
2013-05-29 00:38:51 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /sbin/kpartx -avr /tmp/*/*.raw
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /usr/bin/du --block-size=* -x -s /tmp/*/built
|
|
|
|
ALL ALL=(root) NOPASSWD: /bin/mount -t tmpfs tmpfs /tmp/image.*
|
2013-05-02 21:02:38 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/umount -f /tmp/image.*
|
2013-04-02 00:25:25 +00:00
|
|
|
ALL ALL=(root) NOPASSWD: /bin/chown *\:* /tmp/image.*
|