NAME
t6ext_attr, t6new_attr - manipulate network endpoint security options
SYNOPSIS
cc [ flags ... ] file ... -lt6
#include <tsix/t6attrs.h>
int t6ext_attr(int fd, t6cmd_t cmd);
int t6new_attr(int fd, t6cmd_t cmd);
DESCRIPTION
t6ext_attr turns on extended security operations on the trusted
IPC mechanism. fd is the descriptor associated with the IPC mechanism,
and cmd must be to turn on extended operations, or to turn them
off. When first created, the trusted IPC mechanism appears the same as
an untrusted IPC mechanism. It can be used in the same way to send and
receive data as long as communications do not violate the security policies
of the system. Between systems that support mandatory access control, for
example, communications can only occur between processes at the same sensitivity
level. Before the network endpoint allows a process to specify security
attributes or manipulate the endpoint's security options, it must call
t6ext_attr .
t6new_attr with a value of for cmd tells the underlying TSIX software that the receiving process is only interested in security attributes if they differ from the last set of attributes it received. After this call, t6recvfrom(3N) only returns valid security attributes when a change in the attributes is detected. This is indicated by setting the t6recvfrom parameter new_attrs to non-zero. When new attributes are returned, the full set of requested attributes is returned, not just those that have changed. When cmd is , the default situation prevails, that is, attributes are returned with each call to t6recvfrom.