SECURITY_CONTEXT_TO_SID_DEFAULT

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

security_context_to_sid_default - Obtain a SID for a given security context,  

SYNOPSIS

"SYNOPSIS"

int security_context_to_sid_default (char * scontext, u32 scontext_len, u32 * sid, u32 def_sid);  

ARGUMENTS

scontext
security context
scontext_len
length in bytes
sid
security identifier, SID
def_sid
default SID to assign on errror
 

DESCRIPTION

Obtains a SID associated with the security context that has the string representation specified by scontext. The default SID is passed to the MLS layer to be used to allow kernel labeling of the MLS field if the MLS field is not present (for upgrading to MLS without full relabel). Returns -EINVAL if the context is invalid, -ENOMEM if insufficient memory is available, or 0 on success.  

DESCRIPTION

Obtains a SID associated with the security context that has the string representation specified by scontext. The default SID is passed to the MLS layer to be used to allow kernel labeling of the MLS field if the MLS field is not present (for upgrading to MLS without full relabel). Returns -EINVAL if the context is invalid, -ENOMEM if insufficient memory is available, or 0 on success.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:46 GMT, October 09, 2005