t6mls_socket(3N) t6mls_socket(3N) NAME t6mls_socket - Mark a socket as trusted. SYNOPSIS cc [ flags ... ] file #include <sys/t6attrs.h> int t6mls_socket(int fd, t6cmd_t state) DESCRIPTION t6mls_socket marks a socket associated with file descriptor fd as trusted. By default, all sockets are untrusted. If the value of state is T6_ON, the socket is marked as trusted, meaning that security policy is not enforced on data being read by that socket. If the value of state is T6_OFF, the socket is marked as untrusted, meaning that security policy will again be enforced on data read by that socket. REQUIREMENTS t6mls_socket requires the SGI Session Manager to be installed. CAPABILITIES A process calling this function must have CAP_NETWORK_MGT capability in the effective vector of its capability set. RETURN VALUES Upon successful completion, t6mls_socket will return NULL. Otherwise a specific error code is returned. ERRORS [ENOSYS] Function not implemented. [EPERM] Do not have appropriate privileges. [EINVAL] Invalid entry. [ENOTSOCK] Attempted a Socket operation on a Non-Socket. SEE ALSO t6recvfrom(3N), t6set_endpt_default(3N). SOURCE Trusted Systems Interoperability Group NOTES Page 1