Trusted Extensions Library Functions getplabel(3TSOL)
NAME
getplabel - get process label
SYNOPSIS
cc [flag...] file... -ltsol [library...]
#include
int getplabel(mlabelt *labelp);
DESCRIPTION
The getplabel() function obtains the sensitivity label of
the calling process.
RETURN VALUES
Upon successful completion, getplabel() returns 0. Otherwise
it returns -1, labelp is unchanged, and errno is set to
indicate the error.
ERORS
The getplabel() function fails and labelp does not refer to
a valid sensitivity label if:
EFAULT labelp points to an invalid address.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
ucredgetlabel(3C), libtsol(3LIB), mlabelalloc(3TSOL),
mlabelfree(3TSOL), attributes(5)
Obtaining a Process Label in Solaris Trusted Extensions
Developer's Guide
SunOS 5.11 Last change: 20 Jul 2007 1
Trusted Extensions Library Functions getplabel(3TSOL)
NOTES
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 ucredgetlabel(3C) returns.
SunOS 5.11 Last change: 20 Jul 2007 2
|