4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
37 * These are Sun private declarations. Not to be used by any
38 * external applications/code.
42 * Protocol level for option header - (hex for ascii "TL")
45 #define TL_PROT_LEVEL 0x544c
48 * Option and data structures used for sending credentials
50 #define TL_OPT_PEER_CRED 10
51 typedef struct tl_credopt
{
52 uid_t tc_uid
; /* Effective user id */
53 gid_t tc_gid
; /* Effective group id */
54 uid_t tc_ruid
; /* Real user id */
55 gid_t tc_rgid
; /* Real group id */
56 uid_t tc_suid
; /* Saved user id (from exec) */
57 gid_t tc_sgid
; /* Saved group id (from exec) */
58 uint_t tc_ngroups
; /* number of supplementary groups */
61 #define TL_OPT_PEER_UCRED 11 /* data structure is ucred */
64 * Ioctl's for the 'tl' driver
66 #define TL_IOC (('T' << 16)|('L' << 8))
67 #define TL_IOC_CREDOPT (TL_IOC|001)
68 /* unused (TL_IOC|002) */
69 #define TL_IOC_UCREDOPT (TL_IOC|003)
75 #endif /* _SYS_TL_H */