1door_cred(3C)            Standard C Library Functions            door_cred(3C)
2
3
4

NAME

6       door_cred - return credential information associated with the client
7

SYNOPSIS

9       cc -mt [ flag... ] file... [ library... ]
10       #include <door.h>
11
12       int door_cred(door_cred_t *info);
13
14

DESCRIPTION

16       The   door_cred()  function  returns  credential information associated
17       with the  client (if any) of the current door invocation.
18
19
20       The contents of the info argument include the following fields:
21
22         uid_t   dc_euid;        /* Effective uid of client */
23         gid_t   dc_egid;        /* Effective gid of client */
24         uid_t   dc_ruid;        /* Real uid of client */
25         gid_t   dc_rgid;        /* Real gid of client */
26         pid_t   dc_pid;         /* pid of client */
27
28
29
30       The credential information associated with the  client  refers  to  the
31       information  from  the immediate caller; not necessarily from the first
32       thread in a chain of door calls.
33

RETURN VALUES

35       Upon  successful  completion,   door_cred()   returns   0.   Otherwise,
36       door_cred() returns −1 and sets errno to indicate the error.
37

ERRORS

39       The  door_cred() function will fail if:
40
41       EFAULT    The address of the info argument is invalid.
42
43
44       EINVAL    There is no associated door client.
45
46

USAGE

48       The  door_cred()  function  is  obsolete.  Applications  should use the
49       door_ucred(3C) function in place of door_cred().
50

ATTRIBUTES

52       See attributes(5) for descriptions of the following attributes:
53
54
55
56
57       ┌─────────────────────────────┬─────────────────────────────┐
58       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │Architecture                 │all                          │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │Availability                 │SUNWcsu                      │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │Interface Stability          │Obsolete                     │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │MT-Level                     │Safe                         │
67       └─────────────────────────────┴─────────────────────────────┘
68

SEE ALSO

70       door_call(3C), door_create(3C), door_ucred(3C), attributes(5)
71
72
73
74SunOS 5.11                        22 Mar 2005                    door_cred(3C)
Impressum