*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> t6mls_socket (3n)              
Title
Content
Arch
Section
 

Contents


t6mls_socket(3N)					      t6mls_socket(3N)


NAME    [Toc]    [Back]

     t6mls_socket - Mark a socket as trusted.

SYNOPSIS    [Toc]    [Back]

     cc	[ flags	... ] file

     #include <sys/t6attrs.h>

     int t6mls_socket(int fd, t6cmd_t state)

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     t6mls_socket requires the SGI Session Manager to be installed.

CAPABILITIES    [Toc]    [Back]

     A process calling this function must have CAP_NETWORK_MGT capability in
     the effective vector of its capability set.

RETURN VALUES    [Toc]    [Back]

     Upon successful completion, t6mls_socket will return NULL.	Otherwise a
     specific error code is returned.

ERRORS    [Toc]    [Back]

     [ENOSYS]	    Function not implemented.

     [EPERM]	    Do not have	appropriate privileges.

     [EINVAL]	    Invalid entry.

     [ENOTSOCK]	    Attempted a	Socket operation on a Non-Socket.

SEE ALSO    [Toc]    [Back]

      
      
     t6recvfrom(3N), t6set_endpt_default(3N).

SOURCE    [Toc]    [Back]

     Trusted Systems Interoperability Group

NOTES    [Toc]    [Back]


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sockatmark Tru64 Test whether a socket is at the out-of-band mark
sockatmark NetBSD determine whether a socket is at the out-of-band mark
libt6 IRIX TSIX trusted IPC library (part of libc in Trusted IRIX)
mac_get_fd FreeBSD get the label of a file, socket, socket peer or process
mac_get_file FreeBSD get the label of a file, socket, socket peer or process
mac_get_pid FreeBSD get the label of a file, socket, socket peer or process
mac_get_proc FreeBSD get the label of a file, socket, socket peer or process
mac_get FreeBSD get the label of a file, socket, socket peer or process
lfs_segclean NetBSD mark a segment clean
set_menu_mark OpenBSD get and set the menu mark string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service