xref: /titanic_51/usr/src/uts/common/sys/idmap.h (revision c5c4113dfcabb1eed3d4bdf7609de5170027a794)
1*c5c4113dSnw141292 /*
2*c5c4113dSnw141292  * CDDL HEADER START
3*c5c4113dSnw141292  *
4*c5c4113dSnw141292  * The contents of this file are subject to the terms of the
5*c5c4113dSnw141292  * Common Development and Distribution License (the "License").
6*c5c4113dSnw141292  * You may not use this file except in compliance with the License.
7*c5c4113dSnw141292  *
8*c5c4113dSnw141292  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c5c4113dSnw141292  * or http://www.opensolaris.org/os/licensing.
10*c5c4113dSnw141292  * See the License for the specific language governing permissions
11*c5c4113dSnw141292  * and limitations under the License.
12*c5c4113dSnw141292  *
13*c5c4113dSnw141292  * When distributing Covered Code, include this CDDL HEADER in each
14*c5c4113dSnw141292  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c5c4113dSnw141292  * If applicable, add the following below this CDDL HEADER, with the
16*c5c4113dSnw141292  * fields enclosed by brackets "[]" replaced with your own identifying
17*c5c4113dSnw141292  * information: Portions Copyright [yyyy] [name of copyright owner]
18*c5c4113dSnw141292  *
19*c5c4113dSnw141292  * CDDL HEADER END
20*c5c4113dSnw141292  */
21*c5c4113dSnw141292 /*
22*c5c4113dSnw141292  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*c5c4113dSnw141292  * Use is subject to license terms.
24*c5c4113dSnw141292  */
25*c5c4113dSnw141292 
26*c5c4113dSnw141292 #ifndef _SYS_IDMAP_H
27*c5c4113dSnw141292 #define	_SYS_IDMAP_H
28*c5c4113dSnw141292 
29*c5c4113dSnw141292 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*c5c4113dSnw141292 
31*c5c4113dSnw141292 /* Idmap status codes */
32*c5c4113dSnw141292 #define	IDMAP_SUCCESS			0
33*c5c4113dSnw141292 #define	IDMAP_NEXT			1
34*c5c4113dSnw141292 #define	IDMAP_ERR_OTHER			-10000
35*c5c4113dSnw141292 #define	IDMAP_ERR_INTERNAL		-9999
36*c5c4113dSnw141292 #define	IDMAP_ERR_MEMORY		-9998
37*c5c4113dSnw141292 #define	IDMAP_ERR_NORESULT		-9997
38*c5c4113dSnw141292 #define	IDMAP_ERR_NOTUSER		-9996
39*c5c4113dSnw141292 #define	IDMAP_ERR_NOTGROUP		-9995
40*c5c4113dSnw141292 #define	IDMAP_ERR_NOTSUPPORTED		-9994
41*c5c4113dSnw141292 #define	IDMAP_ERR_W2U_NAMERULE		-9993
42*c5c4113dSnw141292 #define	IDMAP_ERR_U2W_NAMERULE		-9992
43*c5c4113dSnw141292 #define	IDMAP_ERR_CACHE			-9991
44*c5c4113dSnw141292 #define	IDMAP_ERR_DB			-9990
45*c5c4113dSnw141292 #define	IDMAP_ERR_ARG			-9989
46*c5c4113dSnw141292 #define	IDMAP_ERR_SID			-9988
47*c5c4113dSnw141292 #define	IDMAP_ERR_IDTYPE		-9987
48*c5c4113dSnw141292 #define	IDMAP_ERR_RPC_HANDLE		-9986
49*c5c4113dSnw141292 #define	IDMAP_ERR_RPC			-9985
50*c5c4113dSnw141292 #define	IDMAP_ERR_CLIENT_HANDLE		-9984
51*c5c4113dSnw141292 #define	IDMAP_ERR_BUSY			-9983
52*c5c4113dSnw141292 #define	IDMAP_ERR_PERMISSION_DENIED	-9982
53*c5c4113dSnw141292 #define	IDMAP_ERR_NOMAPPING		-9981
54*c5c4113dSnw141292 #define	IDMAP_ERR_NEW_ID_ALLOC_REQD	-9980
55*c5c4113dSnw141292 #define	IDMAP_ERR_DOMAIN		-9979
56*c5c4113dSnw141292 #define	IDMAP_ERR_SECURITY		-9978
57*c5c4113dSnw141292 #define	IDMAP_ERR_NOTFOUND		-9977
58*c5c4113dSnw141292 #define	IDMAP_ERR_DOMAIN_NOTFOUND	-9976
59*c5c4113dSnw141292 #define	IDMAP_ERR_UPDATE_NOTALLOWED	-9975
60*c5c4113dSnw141292 #define	IDMAP_ERR_CFG			-9974
61*c5c4113dSnw141292 #define	IDMAP_ERR_CFG_CHANGE		-9973
62*c5c4113dSnw141292 #define	IDMAP_ERR_NOTMAPPED_WELLKNOWN	-9972
63*c5c4113dSnw141292 #define	IDMAP_ERR_RETRIABLE_NET_ERR	-9971
64*c5c4113dSnw141292 
65*c5c4113dSnw141292 /* Reserved GIDs for some well-known SIDs */
66*c5c4113dSnw141292 #define	IDMAP_WK_LOCAL_SYSTEM_GID	2147483648U
67*c5c4113dSnw141292 #define	IDMAP_WK_CREATOR_GROUP_GID	2147483649U
68*c5c4113dSnw141292 #define	IDMAP_WK__MAX_GID		2147483649U
69*c5c4113dSnw141292 
70*c5c4113dSnw141292 /* Reserved UIDs for some well-known SIDs */
71*c5c4113dSnw141292 #define	IDMAP_WK_CREATOR_OWNER_UID	2147483648U
72*c5c4113dSnw141292 #define	IDMAP_WK__MAX_UID		2147483648U
73*c5c4113dSnw141292 
74*c5c4113dSnw141292 #endif /* _SYS_IDMAP_H */
75