|Skip Navigation Links|
|Exit Print View|
|man pages section 3: Extended Library Functions, Volume 4 Oracle Solaris 11 Express 11/10|
- get process label
cc [flag...] file... -ltsol [library...]
#include <tsol/label.h> int getplabel(m_label_t *label_p);
The getplabel() function obtains the sensitivity label of the calling process.
Upon successful completion, getplabel() returns 0. Otherwise it returns -1, label_p is unchanged, and errno is set to indicate the error.
The getplabel() function fails and label_p does not refer to a valid sensitivity label if:
label_p points to an invalid address.
See attributes(5) for descriptions of the following attributes:
The 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.