- get process label
cc [flag...] file... -ltsol [library...]
#include <tsol/label.h> int getplabel(m_label_t *label_p);
getplabel() obtains the sensitivity label of the calling process.
getplabel() returns:
On success.
On failure, and sets errno to indicate the error. label_p is unchanged.
getplabel() fails (and label_p does not refer to a valid sensitivity label) if this condition is true:
label_p points to an invalid address.
See attributes(5) for descriptions of the following attributes:
|
ucred_getlabel(3C), m_label_alloc(3TSOL), m_label_free(3TSOL), attributes(5)
Obtaining a Process Label in Solaris Trusted Extensions Developer’s Guide
This function returns different values for system processes than ucred_getlabel(3C) returns.