zfs_acl_chmod_rwacl_001_pos.ksh revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# DESCRIPTION:
# specificied user and group. File have the correct access permission.
#
# STRATEGY:
# by root and non-root user.
# 2. Verify owner always can read and write acl, even deny.
# 3. Verify group access permission, when group was assigned
# 5. Verify everyone@ was deny except specificied user, this user can read
# and write acl.
# 6. Verify the group was deny except specified user, this user can read
# and write acl
#
verify_runnable "both"
log_assert "Verify chmod A[number]{+|-|=} read_acl/write_acl have correct " \
"behaviour to access permission."
function read_ACL #<node> <user1> <user2> ...
{
typeset node=$1
typeset user
typeset -i ret
shift
ret=$?
shift
done
return 0
}
function write_ACL #<node> <user1> <user2> ...
{
typeset node=$1
typeset user
typeset -i ret before_cnt after_cnt
shift
ret=$?;
ret=$?
ret=$?
ret=$?
return 1
fi
shift
done
return 0
}
function check_owner #<node>
{
typeset node=$1
done
}
function check_group #<node>
{
typeset node=$1
typeset grp_usr=""
if [[ $ZFS_ACL_CUR_USER == root ]]; then
elif [[ $ZFS_ACL_CUR_USER == $ZFS_ACL_STAFF1 ]]; then
fi
}
function check_everyone #<node>
{
typeset node=$1
typeset flag
else
fi
done
}
function check_spec_user #<node>
{
typeset node=$1
# The specified user can read and write acl
# All the other user can't read and write acl
}
function check_spec_group #<node>
{
typeset node=$1
# The specified group can read and write acl
# All the other user can't read and write acl
}
function check_user_in_group #<node>
{
typeset node=$1
}
set -A func_name check_owner \
done
done
done