.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SECURITY_CONTEXT_TO_SID_DEFAULT" "9" "09 October 2005" "" "" .SH NAME security_context_to_sid_default \- Obtain a SID for a given security context, .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int security_context_to_sid_default (char * \fIscontext\fB, u32 \fIscontext_len\fB, u32 * \fIsid\fB, u32 \fIdef_sid\fB); \fR .SH "ARGUMENTS" .TP \fB\fIscontext\fB\fR security context .TP \fB\fIscontext_len\fB\fR length in bytes .TP \fB\fIsid\fB\fR security identifier, SID .TP \fB\fIdef_sid\fB\fR default SID to assign on errror .SH "DESCRIPTION" .PP Obtains a SID associated with the security context that has the string representation specified by \fIscontext\fR\&. 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. .SH "DESCRIPTION" .PP Obtains a SID associated with the security context that has the string representation specified by \fIscontext\fR\&. 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.