int security_context_to_sid_default (char * scontext, u32 scontext_len, u32 * sid, u32 def_sid);
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.
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.