summaryrefslogtreecommitdiff
path: root/tsp/tsp-sudoer
blob: cc786c159643e1ffbcb11286c349380a4abdfe5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Commands used by TITS
#
# tune2fs           by tct/*_prepare_flash_conf.sh in tct/flash/flash.sh: change_uuid()
# btrfs             by tct/run_tct_chroot.sh in tct/run/run.sh: create_chroot(), delete_chroot()
# chroot            by tct/run_tct_chroot.sh in tct/run/run.sh: run_in_chroot()
# mkdir, cp, ln, sh by tct/odroid_prepare_flash_conf.sh in tct/prepare/prepare.sh: install_iserial()
#                   and test/tct_prepare.bats
# mount, umount     by tct/odroid_prepare_flash_conf.sh in tct/prepare/prepare.sh: mount_image(), unmount_image()
#                   and tct/run_tct_chroot.sh in tct/run/run.sh: create_chroot(), delete_chroot()
# dd                by tct/odroid_prepare_flash_conf.sh
# bmaptool          by tct/minnow_prepare_flash_conf.sh
# rm                by test/tct_flash.bats
Cmnd_Alias C_TSP = \
  /sbin/tune2fs *, \
  /sbin/btrfs subvolume *, \
  /usr/sbin/chroot *, \
  /bin/mkdir *, \
  /bin/cp *, \
  /bin/rm *, \
  /bin/ln -s *, \
  /bin/dd *, \
  /bin/sh -c echo * > */etc/id*, \
  /bin/mount -o loop *, \
  /bin/umount *, \
  /usr/bin/bmaptool -q copy *

Runas_Alias R_ROOT = root

%tsp ALL = (R_ROOT) NOPASSWD: C_TSP