CONTEXT_TO_SID

Section: Linux Programmer's Manual (2)
Updated: 15 Mar 2000
Index Return to Main Contents
 

NAME

security_context_to_sid - Get a SID for a security context string  

SYNOPSIS

#include <ss.h>

int security_context_to_sid(security_context_t scontext, __u32 *scontext_len, security_id_t *out_sid);  

DESCRIPTION

The security_context_to_sid call is used to obtain a SID associated with the security context that has the string representation specified by scontext. The scontext_len parameter specifies the length of the string, including the terminating NULL character.  

RETURN VALUE

A zero is returned on success. On error, -1 is returned, and errno is set appropriately.  

ERRORS

EINVAL
The context was invalid.
EACCES
The process is not authorized to invoke this call.
 

SEE ALSO

security_compute_av(2), security_sid_to_context(2), security_context_to_sid(2), security_transition_sid(2), security_member_sid(2), security_load_policy(2), security_notify_perm(2), security_get_sids(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:08:28 GMT, December 18, 2000