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

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

Contents


CAP_SOCKET(3N)							CAP_SOCKET(3N)


NAME    [Toc]    [Back]

     cap_socket	- create a socket with privilege

SYNOPSIS    [Toc]    [Back]

     #include <cap_net.h>

     int cap_socket(int	domain,	int type, int protocol);

DESCRIPTION    [Toc]    [Back]

     cap_socket	asserts	appropriate privilege for the creation of sockets with
     privileged	protocol types,	like SOCK_RAW or SOCK_IGMP .

     If	_POSIX_CAP is in effect, a process calling this	function should	have
     CAP_NETWORK_MGT capability	in the permitted vector	of its capability set.

RETURN VALUES    [Toc]    [Back]

     cap_socket	returns	a descriptor referencing the socket if successful, -1
     otherwise.

ERRORS    [Toc]    [Back]

     cap_socket	has the	same error codes as socket(2).

SEE ALSO    [Toc]    [Back]

      
      
     capability(4), socket(2), sysconf(3c).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
addpriv IRIX add a privilege to the system administration privilege database
rmpriv IRIX remove a privilege from the privilege database
VOP_MKNOD FreeBSD create a file, socket, fifo, device, directory or symlink
VOP_MKDIR FreeBSD create a file, socket, fifo, device, directory or symlink
VOP_SYMLINK FreeBSD create a file, socket, fifo, device, directory or symlink
VOP_CREATE FreeBSD create a file, socket, fifo, device, directory or symlink
mac_get_pid 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_fd 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
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service