c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * CDDL HEADER START
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * The contents of this file are subject to the terms of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * Common Development and Distribution License (the "License").
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * You may not use this file except in compliance with the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * See the License for the specific language governing permissions
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * and limitations under the License.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * When distributing Covered Code, include this CDDL HEADER in each
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * If applicable, add the following below this CDDL HEADER, with the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * fields enclosed by brackets "[]" replaced with your own identifying
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * information: Portions Copyright [yyyy] [name of copyright owner]
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * CDDL HEADER END
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw * Use is subject to license terms.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw/* Idmap status codes */
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw/* Reserved GIDs for some well-known SIDs */
48258c6b4e17f36ab09fba0bd6307d1fec9dcbcejp#define IDMAP_WK_LOCAL_SYSTEM_GID 2147483648U /* 0x80000000 */
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw/* Reserved UIDs for some well-known SIDs */
8edda6281c84e0632a22f9c8dbf0d6f1558878ebbaban/* Reserved SIDs */
d3a612ca42c17c3baa6c96ded00f98db349cc881nw * Max door RPC size for ID mapping (can't be too large relative to the
d3a612ca42c17c3baa6c96ded00f98db349cc881nw * default user-land thread stack size, since clnt_door_call()
d3a612ca42c17c3baa6c96ded00f98db349cc881nw * alloca()s). See libidmap:idmap_init().
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States#define IDMAP_SENTINEL_PID UINT32_MAX
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States#define IDMAP_ID_IS_EPHEMERAL(pid) \
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States (((pid) > INT32_MAX) && ((pid) != IDMAP_SENTINEL_PID))
9fb67ea305c66b6a297583b9b0db6796b0dfe497afshin salek ardakani - Sun Microsystems - Irvine United States
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#endif /* _SYS_IDMAP_H */