Function selinux_sys::avc_compute_member [−][src]
pub unsafe extern "C" fn avc_compute_member(
ssid: security_id_t,
tsid: security_id_t,
tclass: security_class_t,
newsid: *mut security_id_t
) -> c_int
avc_compute_member - Compute SID for polyinstantation. @ssid: source security identifier @tsid: target security identifier @tclass: target security class @newsid: pointer to SID reference
Call the security server to obtain a context for labeling an object instance. Look up the context in the SID table, making a new entry if not found. Increment the reference counter for the SID. Store a pointer to the SID structure into the memory referenced by @newsid, returning %0 on success or -%1 on error with @errno set.