1getzonerootbyid(3TSOL)Trusted Extensions Library Functionsgetzonerootbyid(3TSOL)
2
3
4

NAME

6       getzonerootbyid,  getzonerootbylabel,  getzonerootbyname  - map between
7       zone root pathnames and labels
8

SYNOPSIS

10       cc [flags...] file... -ltsol [library...]
11
12
13       #include <tsol/label.h>
14
15       char *getzonerootbyid(zoneid_t zoneid);
16
17
18       char *getzonerootbylabel(const m_label_t *label);
19
20
21       char *getzonerootbyname(const char *zonename);
22
23

DESCRIPTION

25       The getzonerootbyid() function returns the root pathname of zoneid.
26
27
28       The getzonerootbylabel() function returns the root pathname of the zone
29       whose label is label.
30
31
32       The getzonerootbyname() function returns the root pathname of zonename.
33
34
35       All  of  these  functions require that the specified zone's state is at
36       least ZONE_IS_READY. The zone of the calling process must dominate  the
37       specified  zone's  label,  or the calling process must be in the global
38       zone. The returned pathname is relative to the root path of  the  call‐
39       er's zone.
40

RETURN VALUES

42       On  successful completion, the getzonerootbyid(), getzonerootbylabel(),
43       and getzonerootbyname() functions return a pointer to a  pathname  that
44       is allocated within these functions. To free the storage, use free(3C).
45       On failure, these functions return NULL and set errno to  indicate  the
46       error.
47

ERRORS

49       These functions will fail if:
50
51       EFAULT    Invalid argument; pointer location is invalid.
52
53
54       EINVAL    zoneid invalid, or zone not found or not ready.
55
56
57       ENOENT    Zone does not exist.
58
59
60       ENOMEM    Unable to allocate pathname.
61
62

ATTRIBUTES

64       See attributes(5) for descriptions of the following attributes:
65
66
67
68
69       ┌───────────────────────┬───────────────────────────────────┐
70       │    ATTRIBUTE TYPE     │          ATTRIBUTE VALUE          │
71       ├───────────────────────┼───────────────────────────────────┤
72       │Interface Stability    │ Committed                         │
73       ├───────────────────────┼───────────────────────────────────┤
74       │MT-Level               │ Safe                              │
75       └───────────────────────┴───────────────────────────────────┘
76

SEE ALSO

78       Intro(2),  free(3C), getzonenamebyid(3C), libtsol(3LIB), attributes(5),
79       labels(5)
80

NOTES

82       The functionality described on this manual page is  available  only  if
83       the system is configured with Trusted Extensions.
84
85
86
87SunOS 5.11                        20 Jul 2007           getzonerootbyid(3TSOL)
Impressum