Query: getplabel
OS: opensolaris
Section: 3tsol
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getplabel(3TSOL) Trusted Extensions Library Functions getplabel(3TSOL)NAMEgetplabel - get process labelSYNOPSIScc [flag...] file... -ltsol [library...] #include <tsol/label.h> int getplabel(m_label_t *label_p);DESCRIPTIONThe getplabel() function obtains the sensitivity label of the calling process.RETURN VALUESUpon successful completion, getplabel() returns 0. Otherwise it returns -1, label_p is unchanged, and errno is set to indicate the error.ERRORSThe getplabel() function fails and label_p does not refer to a valid sensitivity label if: EFAULT label_p points to an invalid address.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOucred_getlabel(3C), libtsol(3LIB), m_label_alloc(3TSOL), m_label_free(3TSOL), attributes(5) Obtaining a Process Label in Solaris Trusted Extensions Developer's GuideNOTESThe functionality described on this manual page is available only if the system is configured with Trusted Extensions. This function returns different values for system processes than ucred_getlabel(3C) returns. SunOS 5.11 20 Jul 2007 getplabel(3TSOL)