To use the Trusted X11 programming interfaces described in this chapter, you need the following header files:
#include <tsol/Xtsol.h> |
The Trusted X11 examples compile with the following library:
-lXtsol -ltsol |
To use the X11 Windows label clipping programming interfaces described in this chapter, you need the following header file:
#include <tsol/label_clipping.h> |
The label clipping examples compile with the following library:
-lDtTsol -ltsol |
The ResourceType type definition indicates the type of resource to be handled. The value can IsWindow.
The XTsolResAttributes structure contains the resource attributes.
CARD32 |
ouid |
User ID of workstation server owner |
CARD32 |
uid |
User ID of window |
bslabel_t |
sl |
Sensitivity label |
The XTsolPropAttributes structure contains the property attributes.
CARD32 |
uid |
User ID of property |
bslabel_t |
sl |
Sensitivity label |
The XTsolClientAttributes structure contains the client attributes.
uid_t |
uid |
ID of user that started the client. |
gid_t |
gid |
Group ID |
pid_t |
pid |
Process ID |
u_long |
sessionid |
Session ID |
au_id_t |
auditid |
Audit ID |
u_long |
iaddr |
Internet address of workstation where the client is running. |
The setting_flag type definition defines CMW label flag values as follows:
SETCL_SL - Set the sensitivity label portion of the CMW label. SETCL_ALL - Set the entire CMW label.
A data structure to represent a binary CMW label. Interfaces accept and return a binary CMW label in a structure of type bclabel_t.
A type definition to represent a clearance. Interfaces accept as parameters and return binary clearances in a structure of type bclear_t.