next up previous contents index
Next: 11.2.7 register_avc: Register an Up: 11.2 oskit_security: Security Server Previous: 11.2.5 sid_to_context: Obtain the

11.2.6 context_to_sid: Obtain the SID for a given security context

 

SYNOPSIS

#include <oskit/flask/security.h>

OSKIT_COMDECL oskit_security_context_to_sid(oskit_security_t *security, oskit_security_context_t scontext, oskit_u32_t scontext_len, [out] oskit_security_id_t *out_sid);

DESCRIPTION

The oskit_security_context_to_sid function returns a SID associated with a particular security context. The scontext_len parameter specifies the length of the security context string, including the terminating NULL character.

PARAMETERS

security
The security server.
scontext
The security context.
scontext_len
The length of the security context in bytes.
out_sid
The SID.

RETURNS

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



Utah Flux Research Group