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 GETUSERRANGE 3TSOL "Jul 20, 2007"
8 getuserrange \- get the label range of a user
12 \fBcc\fR [\fIflags\fR...] \fIfile\fR... \fB-ltsol\fR [\fIlibrary\fR...]
17 #include <tsol/label.h>
19 \fBm_range_t *\fR\fBgetuserrange\fR(\fBconst char *\fR\fIusername\fR);
25 The \fBgetuserrange()\fR function returns the label range of \fIusername\fR.
26 The lower bound in the range is used as the initial workspace label when a user
27 logs into a multilevel desktop. The upper bound, or clearance, is used as an
28 upper limit to the available labels that a user can assign to labeled
32 The default value for a user's label range is specified in
33 \fBlabel_encodings\fR(4). Overriding values for individual users are specified
34 in \fBuser_attr\fR(4).
38 The \fBgetuserrange()\fR function returns \fBNULL\fR if the memory allocation
39 fails. Otherwise, the function returns a structure which must be freed by the
46 m_label_free(range->lower_bound);
47 m_label_free(range->upper_bound);
56 The \fBgetuserrange()\fR function will fail if:
63 The physical limits of the system are exceeded by size bytes of memory which
70 See \fBattributes\fR(5) for descriptions of the following attributes:
78 ATTRIBUTE TYPE ATTRIBUTE VALUE
80 Interface Stability See below.
87 The \fBgetuserrange()\fR function is Committed for systems that implement the
88 Defense Intelligence Agency (DIA) MAC policy of \fBlabel_encodings\fR(4). Other
89 policies might exist in a future release of Trusted Extensions that might make
90 obsolete or supplement \fBlabel_encodings\fR.
94 \fBfree\fR(3C), \fBlibtsol\fR(3LIB), \fBm_label_free\fR(3TSOL),
95 \fBlabel_encodings\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5)
99 The functionality described on this manual page is available only if the system
100 is configured with Trusted Extensions.