Function selinux_sys::avc_context_to_sid[][src]

pub unsafe extern "C" fn avc_context_to_sid(
    ctx: *const c_char,
    sid: *mut security_id_t
) -> c_int

avc_context_to_sid - get SID for context. @ctx: input security context @sid: pointer to SID reference

Look up security context @ctx in SID table, making a new entry if @ctx is not found. Increment the reference counter for the SID. Store a pointer to the SID structure into the memory referenced by @sid, returning %0 on success or -%1 on error with @errno set.