t6mls_socket - Mark a socket as trusted.
cc [ flags ... ] file
int t6mls_socket(int fd, t6cmd_t state)
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
t6mls_socket requires the SGI Session Manager to be installed.
A process calling this function must have CAP_NETWORK_MGT capability in
the effective vector of its capability set.
Upon successful completion, t6mls_socket will return NULL. Otherwise a
specific error code is returned.
[ENOSYS] Function not implemented.
[EPERM] Do not have appropriate privileges.
[EINVAL] Invalid entry.
[ENOTSOCK] Attempted a Socket operation on a Non-Socket.
Trusted Systems Interoperability Group
PPPPaaaaggggeeee 1111 [ Back ]