.\" 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" "" "06 October 2005" "" "" .SH NAME security_context_to_sid \- Obtain a SID for a given security context. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int security_context_to_sid (char * \fIscontext\fB, u32 \fIscontext_len\fB, u32 * \fIsid\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 .SH "DESCRIPTION" .PP Obtains a SID associated with the security context that has the string representation specified by \fIscontext\fR\&. Returns -EINVAL if the context is invalid, -ENOMEM if insufficient memory is available, or 0 on success.