4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 . $STF_SUITE/include/libtest.shlib
29 export NISSTAFILE=$TEST_BASE_DIR/nis_state
30 export TESTFILE=testfile$$
31 export TESTFILE0=testfile0.$$
32 export TESTFILE2=testfile2.$$
34 # Define super user 'zfstest'
35 export ZFS_ACL_ADMIN=zfstest
37 export ZFS_ACL_STAFF_GROUP=zfsgrp
38 export ZFS_ACL_STAFF1=staff1
39 export ZFS_ACL_STAFF2=staff2
41 export ZFS_ACL_OTHER_GROUP=othergrp
42 export ZFS_ACL_OTHER1=other1
43 export ZFS_ACL_OTHER2=other2
45 # Define the current user who run 'usr_exec'
46 export ZFS_ACL_CUR_USER=""
48 # Define global error string
49 export ZFS_ACL_ERR_STR=""
51 # Define test file and test directory which will be operated by chmod
52 export testfile=$TESTDIR/testfile
53 export testdir=$TESTDIR/testdir
55 # Define several directories for trivial ACLs function test.
56 export RES_DIR=$TESTDIR/RES
57 export INI_DIR=$TESTDIR/INIT
58 export TST_DIR=$TESTDIR/TEST
59 export TMP_DIR=$TESTDIR/TMP
61 # Define test files and their attributes files number for trivial