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