xref: /onnv-gate/usr/src/uts/common/sys/idmap.h (revision 4864:ba665a77a95e)
14520Snw141292 /*
24520Snw141292  * CDDL HEADER START
34520Snw141292  *
44520Snw141292  * The contents of this file are subject to the terms of the
54520Snw141292  * Common Development and Distribution License (the "License").
64520Snw141292  * You may not use this file except in compliance with the License.
74520Snw141292  *
84520Snw141292  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94520Snw141292  * or http://www.opensolaris.org/os/licensing.
104520Snw141292  * See the License for the specific language governing permissions
114520Snw141292  * and limitations under the License.
124520Snw141292  *
134520Snw141292  * When distributing Covered Code, include this CDDL HEADER in each
144520Snw141292  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154520Snw141292  * If applicable, add the following below this CDDL HEADER, with the
164520Snw141292  * fields enclosed by brackets "[]" replaced with your own identifying
174520Snw141292  * information: Portions Copyright [yyyy] [name of copyright owner]
184520Snw141292  *
194520Snw141292  * CDDL HEADER END
204520Snw141292  */
214520Snw141292 /*
224520Snw141292  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
234520Snw141292  * Use is subject to license terms.
244520Snw141292  */
254520Snw141292 
264520Snw141292 #ifndef _SYS_IDMAP_H
274520Snw141292 #define	_SYS_IDMAP_H
284520Snw141292 
294520Snw141292 #pragma ident	"%Z%%M%	%I%	%E% SMI"
304520Snw141292 
314520Snw141292 /* Idmap status codes */
324520Snw141292 #define	IDMAP_SUCCESS			0
334520Snw141292 #define	IDMAP_NEXT			1
344520Snw141292 #define	IDMAP_ERR_OTHER			-10000
354520Snw141292 #define	IDMAP_ERR_INTERNAL		-9999
364520Snw141292 #define	IDMAP_ERR_MEMORY		-9998
374520Snw141292 #define	IDMAP_ERR_NORESULT		-9997
384520Snw141292 #define	IDMAP_ERR_NOTUSER		-9996
394520Snw141292 #define	IDMAP_ERR_NOTGROUP		-9995
404520Snw141292 #define	IDMAP_ERR_NOTSUPPORTED		-9994
414520Snw141292 #define	IDMAP_ERR_W2U_NAMERULE		-9993
424520Snw141292 #define	IDMAP_ERR_U2W_NAMERULE		-9992
434520Snw141292 #define	IDMAP_ERR_CACHE			-9991
444520Snw141292 #define	IDMAP_ERR_DB			-9990
454520Snw141292 #define	IDMAP_ERR_ARG			-9989
464520Snw141292 #define	IDMAP_ERR_SID			-9988
474520Snw141292 #define	IDMAP_ERR_IDTYPE		-9987
484520Snw141292 #define	IDMAP_ERR_RPC_HANDLE		-9986
494520Snw141292 #define	IDMAP_ERR_RPC			-9985
504520Snw141292 #define	IDMAP_ERR_CLIENT_HANDLE		-9984
514520Snw141292 #define	IDMAP_ERR_BUSY			-9983
524520Snw141292 #define	IDMAP_ERR_PERMISSION_DENIED	-9982
534520Snw141292 #define	IDMAP_ERR_NOMAPPING		-9981
544520Snw141292 #define	IDMAP_ERR_NEW_ID_ALLOC_REQD	-9980
554520Snw141292 #define	IDMAP_ERR_DOMAIN		-9979
564520Snw141292 #define	IDMAP_ERR_SECURITY		-9978
574520Snw141292 #define	IDMAP_ERR_NOTFOUND		-9977
584520Snw141292 #define	IDMAP_ERR_DOMAIN_NOTFOUND	-9976
594520Snw141292 #define	IDMAP_ERR_UPDATE_NOTALLOWED	-9975
604520Snw141292 #define	IDMAP_ERR_CFG			-9974
614520Snw141292 #define	IDMAP_ERR_CFG_CHANGE		-9973
624520Snw141292 #define	IDMAP_ERR_NOTMAPPED_WELLKNOWN	-9972
634520Snw141292 #define	IDMAP_ERR_RETRIABLE_NET_ERR	-9971
64*4864Sbaban #define	IDMAP_ERR_W2U_NAMERULE_CONFLICT	-9970
65*4864Sbaban #define	IDMAP_ERR_U2W_NAMERULE_CONFLICT	-9969
664520Snw141292 
674520Snw141292 /* Reserved GIDs for some well-known SIDs */
684520Snw141292 #define	IDMAP_WK_LOCAL_SYSTEM_GID	2147483648U
694520Snw141292 #define	IDMAP_WK_CREATOR_GROUP_GID	2147483649U
704520Snw141292 #define	IDMAP_WK__MAX_GID		2147483649U
714520Snw141292 
724520Snw141292 /* Reserved UIDs for some well-known SIDs */
734520Snw141292 #define	IDMAP_WK_CREATOR_OWNER_UID	2147483648U
744520Snw141292 #define	IDMAP_WK__MAX_UID		2147483648U
754520Snw141292 
764695Sbaban /* Reserved SIDs */
774695Sbaban #define	IDMAP_WK_CREATOR_SID_AUTHORITY	"S-1-3"
784695Sbaban 
794520Snw141292 #endif /* _SYS_IDMAP_H */
80