NAME
libt6 - TSIX trusted IPC library
SYNOPSIS
#include <tsix/t6attrs.h>
DESCRIPTION
libt6 constitutes the TSIX Application Program Interface (API).
It is a library of routines that an application uses to control attribute
transport during trusted interprocess communication. The routines in the
library are recommended over the underlying system call interfaces for
portability because they shield the application from operating system,
communication protocol, and IPC mechanism specifics.
The libt6 routines provide interfaces through which the trusted application:
x Specifies the security attributes used to label outgoing IPC messages ( on - message attributes ) and reads the on-message attributes associated with a received message.
x Controls the security options of the endpoint used to perform trusted IPC.
SECURITY ATTRIBUTES
The security attributes associated with the sending process are called
onmessage attributes because they are independent of the contents of the
message. The TCBs decide what to do with the message based on the on-message
attributes. The security attributes associated with a process, and therefore
those that are used to label IPC messages, vary with the configuration
of the system but must be a subset of the following attributes:
Clearance
Sensitivity label
Information label
Integrity Label
Nationality Caveats
Effective Privileges
Login User ID
Additional Audit Information
Network Session ID
Discretionary IDs (user ID, group ID, and supplementary groups)
Process ID
NOTE: Some of these attributes imply component security policies that may not be available on some systems.
The TSIX program interface allows trusted applications to change the onmessage attributes associated with an outgoing message and retrieve the on-message attributes associated with an incoming message.
ON-MESSAGE ATTRIBUTE ROUTINES
The on-message attribute routines affect the security attributes associated
with outgoing messages or retrieve attributes associated with incoming
messages. The caller specifies attributes to these routines through a
t6attr_t control structure (defined in <tsix/t6attrs.h>
, an opaque structure used to access sets of security attributes. The caller
specifies the attributes applied to outbound messages or retrieved from
incoming messages through TSIX routines. Specified attributes are copied
from or written to the buffers accessible through the control structure.
Any attributes not designated by the sender are supplied for outgoing messages
by the underlying trusted kernel. The routines that send and retrieve on-message
attributes operate on sockets or streams, generically referred to as endpoints.
t6set_endpt_mask(3N) Sets the endpoint mask.
t6get_endpt_default(3N)
Gets the endpoint default security attributes.
t6set_endpt_default(3N)
Sets the endpoint default security attributes.
NETWORK ENDPOINT SECURITY OPTIONS
A trusted application can manipulate a number of security options associated
with the network endpoint via the following calls: