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.
30 #pragma ident "%Z%%M% %I% %E% SMI"
38 * shareadm internal interfaces
62 /* sharectl specific usage message values */
70 typedef struct sa_command
{
73 int (*cmdfunc
)(sa_handle_t
, int, int, char **);
75 int priv
; /* requires RBAC authorizations */
78 #define CMD_ALIAS 0x0001
79 #define CMD_NODISPLAY 0x0002 /* don't display command */
81 #define SVC_AUTH_VALUE "value_authorization"
82 #define SVC_AUTH_ACTION "action_authorization"
83 #define SVC_SET 0x01 /* need value permissions */
84 #define SVC_ACTION 0x02 /* need action permissions */
86 #define ZFS_SHAREALL "/usr/sbin/zfs share -a nfs"
89 * functions/values for manipulating options
92 #define OPT_ADD_SYNTAX -1
93 #define OPT_ADD_SECURITY -2
94 #define OPT_ADD_PROPERTY -3
95 #define OPT_ADD_MEMORY -4
97 /* option list structure */
104 /* general list structure */
112 /* shareutil entry points */
113 extern int add_opt(struct options
**, char *, int);
120 #endif /* _SHAREMGR_H */