t6mls_socket(3N) t6mls_socket(3N)
t6mls_socket - Mark a socket as trusted.
cc [ flags ... ] file
#include <sys/t6attrs.h>
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
socket.
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.
t6recvfrom(3N), t6set_endpt_default(3N).
Trusted Systems Interoperability Group
PPPPaaaaggggeeee 1111 [ Back ]
|