Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
@@ -24,11 +24,11 @@
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
-# Copyright (c) 2013 by Delphix. All rights reserved.
+# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
@@ -47,18 +47,18 @@
verify_runnable "both"
MMAP_EXEC=$STF_SUITE/tests/functional/exec/mmap_exec
function cleanup
{
- log_must $RM $TESTDIR/myls
+ log_must rm $TESTDIR/myls
}
log_assert "Setting exec=on on a filesystem, processes can be executed from " \
"this file system."
log_onexit cleanup
-log_must $CP $LS $TESTDIR/myls
-log_must $ZFS set exec=on $TESTPOOL/$TESTFS
+log_must cp /usr/bin/ls $TESTDIR/myls
+log_must zfs set exec=on $TESTPOOL/$TESTFS
log_must $TESTDIR/myls
log_must $MMAP_EXEC $TESTDIR/myls
log_pass "Setting exec=on on filesystem testing passed."