2 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DOOR_CRED 3C "Mar 22, 2005"
8 door_cred \- return credential information associated with the client
12 \fBcc\fR \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ]
15 \fBint\fR \fBdoor_cred\fR(\fBdoor_cred_t *\fR\fIinfo\fR);
20 The \fBdoor_cred()\fR function returns credential information associated with
21 the client (if any) of the current door invocation.
24 The contents of the \fIinfo\fR argument include the following fields:
28 uid_t dc_euid; /* Effective uid of client */
29 gid_t dc_egid; /* Effective gid of client */
30 uid_t dc_ruid; /* Real uid of client */
31 gid_t dc_rgid; /* Real gid of client */
32 pid_t dc_pid; /* pid of client */
38 The credential information associated with the client refers to the information
39 from the immediate caller; not necessarily from the first thread in a chain of
43 Upon successful completion, \fBdoor_cred()\fR returns \fB0\fR. Otherwise,
44 \fBdoor_cred()\fR returns \fB\(mi1\fR and sets \fBerrno\fR to indicate the
48 The \fBdoor_cred()\fR function will fail if:
55 The address of the \fIinfo\fR argument is invalid.
64 There is no associated door client.
69 The \fBdoor_cred()\fR function is obsolete. Applications should use the
70 \fBdoor_ucred\fR(3C) function in place of \fBdoor_cred()\fR.
73 See \fBattributes\fR(5) for descriptions of the following attributes:
81 ATTRIBUTE TYPE ATTRIBUTE VALUE
85 Interface Stability Obsolete
92 \fBdoor_call\fR(3C), \fBdoor_create\fR(3C), \fBdoor_ucred\fR(3C),