1getplabel(3TSOL)     Trusted Extensions Library Functions     getplabel(3TSOL)
2
3
4

NAME

6       getplabel - get process label
7

SYNOPSIS

9       cc [flag...] file... -ltsol [library...]
10
11
12       #include <tsol/label.h>
13
14       int getplabel(m_label_t *label_p);
15
16

DESCRIPTION

18       The  getplabel()  function obtains the sensitivity label of the calling
19       process.
20

RETURN VALUES

22       Upon successful completion, getplabel() returns 0. Otherwise it returns
23       -1, label_p is unchanged, and errno is set to indicate the error.
24

ERRORS

26       The  getplabel()  function  fails and label_p does not refer to a valid
27       sensitivity label if:
28
29       EFAULT    label_p points to an invalid address.
30
31

ATTRIBUTES

33       See attributes(5) for descriptions of the following attributes:
34
35
36
37
38       ┌─────────────────────────────┬─────────────────────────────┐
39       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
40       ├─────────────────────────────┼─────────────────────────────┤
41       │Interface Stability          │Committed                    │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │MT-Level                     │MT-Safe                      │
44       └─────────────────────────────┴─────────────────────────────┘
45

SEE ALSO

47       ucred_getlabel(3C),        libtsol(3LIB),         m_label_alloc(3TSOL),
48       m_label_free(3TSOL), attributes(5)
49
50
51       Obtaining  a  Process  Label  in Solaris Trusted Extensions Developer's
52       Guide
53

NOTES

55       The functionality described on this manual page is  available  only  if
56       the system is configured with Trusted Extensions.
57
58
59       This  function  returns  different  values  for  system  processes than
60       ucred_getlabel(3C) returns.
61
62
63
64SunOS 5.11                        20 Jul 2007                 getplabel(3TSOL)
Impressum