next up previous contents index
Next: 11.2.12 netif_sid: Obtains SIDs Up: 11.2 oskit_security: Security Server Previous: 11.2.10 fs_sid: Obtain SIDs

11.2.11 port_sid: Obtain the SID for a port number

 

SYNOPSIS

#include <oskit/flask/security.h>

OSKIT_COMDECL oskit_security_port_sid(oskit_security_t *security, oskit_u16_t domain, oskit_u16_t type, oskit_u8_t protocol, oskit_u16_t port, [out] oskit_security_id_t *sid);

DESCRIPTION

The oskit_security_port_sid function returns the SID to use for the port number port in the protocol specified by the triple (domain, type, protocol).

PARAMETERS

security
The security server.
domain
The communications domain/address family.
type
The socket type.
protocol
The protocol.
port
The port number.
sid
The SID of the port number.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group