Merge branch 'less_closed'
[unleashed.git] / usr / src / man / man3lib / libtsol.3lib
blob30992f14581c5ea316599577b3c99b8d1f0f35ed
1 '\" te
2 .\" Copyright (c) 2007, 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 LIBTSOL 3LIB "Jul 20, 2007"
7 .SH NAME
8 libtsol \- Solaris Trusted Extensions library
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBcc\fR [\fIflag\fR...] \fIfile\fR... \fB-ltsol\fR [\fIlibrary\fR...]
13 #include <tsol.h>
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 Functions in this library provide programmatic access to Solaris Trusted
20 Extensions features such as labels and Mandatory Access Policy (MAC) on systems
21 that are configured with Trusted Extensions software.
22 .SH INTERFACES
23 .sp
24 .LP
25 The shared object \fBlibtsol.so.2\fR provides the public interfaces that are
26 defined below. See \fBIntro\fR(3) for additional information on shared object
27 interfaces.
28 .SS "Committed Functions"
29 .sp
31 .sp
32 .TS
33 l l
34 l l .
35 \fBbldominates\fR       \fBblequal\fR
36 \fBblstrictdom\fR       \fBgetpathbylabel\fR
37 \fBgetplabel\fR \fBgetdevicerange\fR
38 \fBgetuserrange\fR      \fBgetzoneidbylabel\fR
39 \fBgetzonelabelbyid\fR  \fBgetzonerootbyid\fR
40 \fBgetzonerootbylabel\fR        \fBgetzonerootbyname\fR
41 \fBlabel_to_str\fR      \fBlabelbuilder\fR
42 \fBlabelclipping\fR     \fBm_label_alloc\fR
43 \fBm_label_dup\fR       \fBm_label_free\fR
44 \fBsetflabel\fR \fBstr_to_label\fR
45 \fBtsol_lbuild_create\fR        \fBtsol_lbuild_destroy\fR
46 \fBtsol_lbuild_get\fR   \fBtsol_lbuild_set\fR
47 \fBXbcleartos\fR        \fBXbsltos\fR
48 .TE
50 .SS "Obsolete Functions"
51 .sp
52 .LP
53 The following functions are preserved to aid porting.
54 .sp
56 .sp
57 .TS
58 c c
59 l l .
60 Function        Committed Replacement
61 \fBbcleartoh\fR \fBlabel_to_str\fR
62 \fBbcleartoh_r\fR       \fBlabel_to_str\fR
63 \fBbcleartos\fR \fBlabel_to_str\fR
64 \fBbltocolor\fR \fBlabel_to_str\fR
65 \fBbltocolor_r\fR       \fBlabel_to_str\fR
66 \fBbsltoh\fR    \fBlabel_to_str\fR
67 \fBbsltoh_r\fR  \fBlabel_to_str\fR
68 \fBbsltos\fR    \fBlabel_to_str\fR
69 \fBh_alloc\fR   \fBlabel_to_str\fR
70 \fBh_free\fR    \fBlabel_to_str\fR
71 \fBhtobclear\fR \fBstr_to_label\fR
72 \fBhtobsl\fR    \fBstr_to_label\fR
73 \fBsbcleartos\fR        \fBstr_to_label\fR
74 \fBsbsltos\fR   \fBstr_to_label\fR
75 \fBstobsl\fR    \fBstr_to_label\fR
76 \fBstobclear\fR \fBstr_to_label\fR
77 .TE
79 .SH FILES
80 .sp
81 .ne 2
82 .na
83 \fB\fB/lib/libtsol.so.2\fR\fR
84 .ad
85 .RS 24n
86 shared object
87 .RE
89 .sp
90 .ne 2
91 .na
92 \fB\fB/lib/64/libtsol.so.2\fR\fR
93 .ad
94 .RS 24n
95 64-bit shared object
96 .RE
98 .SH ATTRIBUTES
99 .sp
101 See \fBattributes\fR(5) for descriptions of the following attributes:
106 box;
107 c | c
108 l | l .
109 ATTRIBUTE TYPE  ATTRIBUTE VALUE
111 Interface Stability     T{
112 See the manual pages for the individual functions.
115 MT-Level        Safe
118 .SH SEE ALSO
121 \fBIntro\fR(3), \fBlibtsnet\fR(3LIB), \fBattributes\fR(5)
122 .SH NOTES
125 The functionality described on this manual page is available only if the system
126 has been configured with Trusted Extensions.