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

NAME

6       labelclipping,  Xbsltos, Xbcleartos - translate a binary label and clip
7       to the specified width
8

SYNOPSIS

10       cc [flag...] file... -ltsol -lDtTsol [library...]
11
12
13       #include <Dt/label_clipping.h>
14
15       XmString Xbsltos(Display *display, const m_label_t *senslabel,
16            Dimension width, const XmFontList fontlist, const int flags);
17
18
19       XmString Xbcleartos(Display *display, const m_label_t *clearance,
20            Dimension width, const XmFontList fontlist, const int flags);
21
22

DESCRIPTION

24       The calling process must have PRIV_SYS_TRANS_LABEL in its set of effec‐
25       tive  privileges  to  translate  labels or clearances that dominate the
26       current process' sensitivity label.
27
28       display      The structure controlling the connection to  an  X  Window
29                    System display.
30
31
32       senslabel    The sensitivity label to be translated.
33
34
35       clearance    The clearance to be translated.
36
37
38       width        The  width of the translated label or clearance in pixels.
39                    If the specified width is shorter than the full label, the
40                    label  is  clipped  and the presence of clipped letters is
41                    indicated by an arrow. In this example, letters have  been
42                    clipped  to the right of: TS<-. See the sbltos(3TSOL) man‐
43                    ual page for more information on the clipped indicator. If
44                    the  specified  width  is equal to the display width (dis‐
45                    play), the label is not truncated, but word-wrapped  using
46                    a width of half the display width.
47
48
49       fontlist     A  list  of  fonts  and  character sets where each font is
50                    associated with a character set.
51
52
53       flags        The  value  of  flags  indicates  which   words   in   the
54                    label_encodings(4)  file are used for the translation. See
55                    the bltos(3TSOL) manual page for a description of the flag
56                    values:   LONG_WORDS,   SHORT_WORDS,  LONG_CLASSIFICATION,
57                    SHORT_CLASSIFICATION,     ALL_ENTRIES,     ACCESS_RELATED,
58                    VIEW_EXTERNAL, VIEW_INTERNAL, NO_CLASSIFICATION. BRACKETED
59                    is an additional flag that  can  be  used  with  Xbsltos()
60                    only. It encloses the sensitivity label in square brackets
61                    as follows: [C].
62
63

RETURN VALUES

65       These functions return a compound string that represents the character-
66       coded  form  of  the sensitivity label or clearance that is translated.
67       The compound string uses the language and fonts specified  in  fontlist
68       and  is  clipped  to width. These functions return NULL if the label or
69       clearance is not a valid, required type as defined in the  label_encod‐
70       ings(4)  file,  or  not dominated by the process' sensitivity label and
71       the PRIV_SYS_TRANS_LABEL privilege is not asserted.
72

FILES

74       /usr/dt/include/Dt/label_clipping.h
75
76           Header file for label clipping functions
77
78
79       /etc/security/tsol/label_encodings
80
81           The label encodings file contains the classification names,  words,
82           constraints, and values for the defined labels of this system.
83
84

EXAMPLES

86       Example 1 Translate and Clip a Clearance.
87
88
89       This example translates a clearance to text using the long words speci‐
90       fied in the label_encodings(4) file, a font list, and clips the  trans‐
91       lated clearance to a width of 72 pixels.
92
93
94         xmstr = Xbcleartos(XtDisplay(topLevel),
95         &clearance, 72, fontlist, LONG_WORDS
96
97

ATTRIBUTES

99       See attributes(5) for descriptions of the following attributes:
100
101
102
103
104       ┌─────────────────────────────┬─────────────────────────────┐
105       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
106       ├─────────────────────────────┼─────────────────────────────┤
107       │Interface Stability          │Obsolete                     │
108       ├─────────────────────────────┼─────────────────────────────┤
109       │MT-Level                     │MT-Safe                      │
110       └─────────────────────────────┴─────────────────────────────┘
111
112
113       The  labelclipping functions, Xbsltos() and Xbcleartos(), are obsolete.
114       Use the label_to_str(3TSOL) function instead.
115

SEE ALSO

117       bltos(3TSOL),  label_to_str(3TSOL),  libtsol(3LIB), label_encodings(4),
118       attributes(5)
119
120
121       See XmStringDraw(3) and FontList(3) for information on the creation and
122       structure of a font list.
123

NOTES

125       The functionality described on this manual page is  available  only  if
126       the system is configured with Trusted Extensions.
127
128
129
130SunOS 5.11                        20 Jul 2007             labelclipping(3TSOL)
Impressum