xref: /onnv-gate/usr/src/uts/common/sys/acl_impl.h (revision 5331:3047ad28a67b)
1*5331Samw /*
2*5331Samw  * CDDL HEADER START
3*5331Samw  *
4*5331Samw  * The contents of this file are subject to the terms of the
5*5331Samw  * Common Development and Distribution License (the "License").
6*5331Samw  * You may not use this file except in compliance with the License.
7*5331Samw  *
8*5331Samw  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5331Samw  * or http://www.opensolaris.org/os/licensing.
10*5331Samw  * See the License for the specific language governing permissions
11*5331Samw  * and limitations under the License.
12*5331Samw  *
13*5331Samw  * When distributing Covered Code, include this CDDL HEADER in each
14*5331Samw  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5331Samw  * If applicable, add the following below this CDDL HEADER, with the
16*5331Samw  * fields enclosed by brackets "[]" replaced with your own identifying
17*5331Samw  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5331Samw  *
19*5331Samw  * CDDL HEADER END
20*5331Samw  */
21*5331Samw /*
22*5331Samw  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*5331Samw  * Use is subject to license terms.
24*5331Samw  */
25*5331Samw 
26*5331Samw #ifndef _SYS_ACL_IMPL_H
27*5331Samw #define	_SYS_ACL_IMPL_H
28*5331Samw 
29*5331Samw #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*5331Samw 
31*5331Samw #ifdef	__cplusplus
32*5331Samw extern "C" {
33*5331Samw #endif
34*5331Samw 
35*5331Samw /*
36*5331Samw  * acl flags
37*5331Samw  *
38*5331Samw  * ACL_AUTO_INHERIT, ACL_PROTECTED and ACL_DEFAULTED
39*5331Samw  * flags can also be stored in this field.
40*5331Samw  */
41*5331Samw #define	ACL_IS_TRIVIAL	0x10000
42*5331Samw #define	ACL_IS_DIR	0x20000
43*5331Samw 
44*5331Samw typedef enum acl_type {
45*5331Samw 	ACLENT_T = 0,
46*5331Samw 	ACE_T = 1
47*5331Samw } acl_type_t;
48*5331Samw 
49*5331Samw struct acl_info {
50*5331Samw 	acl_type_t acl_type;		/* style of acl */
51*5331Samw 	int acl_cnt;			/* number of acl entries */
52*5331Samw 	int acl_entry_size;		/* sizeof acl entry */
53*5331Samw 	int acl_flags;			/* special flags about acl */
54*5331Samw 	void *acl_aclp;			/* the acl */
55*5331Samw };
56*5331Samw 
57*5331Samw #ifdef	__cplusplus
58*5331Samw }
59*5331Samw #endif
60*5331Samw 
61*5331Samw #endif /* _SYS_ACL_IMPL_H */
62