diff options
author | John Wren Kennedy <[email protected]> | 2017-04-05 20:18:22 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-04-06 09:25:36 -0700 |
commit | c1d9abf9059a19c2b48eaa645dbce2e1fba3e0b1 (patch) | |
tree | e10f847d69d44292b0b641324cc5007b8c4badff /tests/zfs-tests/include/commands.cfg | |
parent | 7a4500a10102c00a67442628df2ac2395484757e (diff) |
OpenZFS 7290 - ZFS test suite needs to control what utilities it can run
Authored by: John Wren Kennedy <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Dan McDonald <[email protected]>
Approved by: Gordon Ross <[email protected]>
Ported-by: Brian Behlendorf <[email protected]>
Ported-by: George Melikov <[email protected]>
Porting Notes:
- Utilities which aren't available under Linux have been removed.
- Because of sudo's default secure path behavior PATH must be
explicitly reset at the top of libtest.shlib. This avoids the
need for all users to customize secure path on their system.
- Updated ZoL infrastructure to manage constrained path
- Updated all test cases
- Check permissions for usergroup tests
- When testing in-tree create links under bin/
- Update fault cleanup such that missing files during
cleanup aren't fatal.
- Configure su environment with constrained path
OpenZFS-issue: https://www.illumos.org/issues/7290
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/1d32ba6
Closes #5903
Diffstat (limited to 'tests/zfs-tests/include/commands.cfg')
-rw-r--r-- | tests/zfs-tests/include/commands.cfg | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg new file mode 100644 index 000000000..0776c53fa --- /dev/null +++ b/tests/zfs-tests/include/commands.cfg @@ -0,0 +1,156 @@ +# +# These variables are used by zfs-tests.sh to constrain which utilities +# may be used by the suite. The suite will create a directory which is +# the only element of $PATH and create symlinks from that dir to the +# binaries listed below. +# +# Please keep the contents of each variable sorted for ease of reading +# and maintenance. +# +export SYSTEM_FILES='arp + awk + attr + basename + bc + blockdev + bunzip2 + bzcat + cat + chattr + chgrp + chmod + chown + cksum + cmp + cp + cpio + cut + date + dd + df + diff + dirname + du + echo + egrep + exportfs + expr + false + fdisk + file + find + fio + getconf + getent + getfacl + grep + groupadd + groupdel + groupmod + gunzip + gzip + head + hostname + id + iostat + kill + ksh + ln + logname + ls + lsblk + lsmod + lsscsi + md5sum + mkdir + mknod + mktemp + modprobe + mount + mpstat + mv + net + openssl + parted + pax + pgrep + ping + pkill + printf + ps + pwd + python + quotaon + readlink + rm + rmdir + sed + seq + setenforce + setfacl + setfattr + sh + sha256sum + shuf + sleep + sort + stat + strings + su + sudo + sum + swapon + sync + tail + tar + timeout + touch + tr + true + truncate + udevadm + umask + umount + uname + useradd + userdel + usermod + uuidgen + vmstat + wait + wc + which + xargs' + +export ZFS_FILES='zdb + zfs + zhack + zinject + zpool + ztest + zpios + raidz_test + arc_summary.py + arcstat.py + dbufstat.py + zed' + +export ZFSTEST_FILES='chg_usr_exec + devname2devid + dir_rd_update + file_check + file_trunc + file_write + largest_file + mkbusy + mkfile + mkfiles + mktree + mmap_exec + mmapwrite + randfree_file + readmmap + rename_dir + rm_lnkcnt_zero_file + threadsappend + xattrtest' |