Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getplabel(3tsol) [opensolaris man page]

getplabel(3TSOL)				       Trusted Extensions Library Functions					  getplabel(3TSOL)

NAME
getplabel - get process label SYNOPSIS
cc [flag...] file... -ltsol [library...] #include <tsol/label.h> int getplabel(m_label_t *label_p); DESCRIPTION
The getplabel() function obtains the sensitivity label of the calling process. RETURN VALUES
Upon successful completion, getplabel() returns 0. Otherwise it returns -1, label_p is unchanged, and errno is set to indicate the error. ERRORS
The getplabel() function fails and label_p does not refer to a valid sensitivity label if: EFAULT label_p points to an invalid address. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
ucred_getlabel(3C), libtsol(3LIB), m_label_alloc(3TSOL), m_label_free(3TSOL), attributes(5) Obtaining a Process Label in Solaris Trusted Extensions Developer's Guide 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 ucred_getlabel(3C) returns. SunOS 5.11 20 Jul 2007 getplabel(3TSOL)

Check Out this Related Man Page

blcompare(3TSOL)				       Trusted Extensions Library Functions					  blcompare(3TSOL)

NAME
blcompare, blequal, bldominates, blstrictdom, blinrange - compare binary labels SYNOPSIS
cc [flag...] file... -ltsol [library...] #include <tsol/label.h> int blequal(const m_label_t *label1, const m_label_t *label2); int bldominates(const m_label_t *label1, const m_label_t *label2); int blstrictdom(const m_label_t *label1, const m_label_t *label2); int blinrange(const m_label_t *label, const brange_t *range); DESCRIPTION
These functions compare binary labels for meeting a particular condition. The blequal() function compares two labels for equality. The bldominates() function compares label label1 for dominance over label label2. The blstrictdom() function compares label label1 for strict dominance over label label2. The blinrange() function compares label label for dominance over range->lower_bound and range->upper_bound for dominance over level label. RETURN VALUES
These functions return non-zero if their respective conditions are met, otherwise zero is returned. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
getplabel(3TSOL), label_to_str(3TSOL), libtsol(3LIB), ucred_getlabel(3C), label_encodings(4), attributes(5), labels(5) Determining the Relationship Between Two Labels in Solaris Trusted Extensions Developer's Guide NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. SunOS 5.11 20 Jul 2007 blcompare(3TSOL)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Obtaining IP address

(1 Reply)
Discussion started by: Raael
1 Replies

2. Solaris

execute in exec_attr in Solaris 10 w/ Trusted Extensions

How do I get this line to execute in exec_attr in Solaris 10 with Trusted Extensions? It needs to run as 'sh cpu_root.sh' With the 'sh' it won't execute. Oracle_Install:solaris:cmd:::/cots/oracle/patches/CPUJan2009/9999999/sh cpu_root.sh:uid=0;gid=0 -----Post Update----- Or... (1 Reply)
Discussion started by: djehres
1 Replies

3. Solaris

projects in Solaris 10 w/ Trusted Extensions

Is there a Solaris 10 BUG (with Trusted Extensions) with binding to a project? This is Solaris 10 32bit Intel and Oracle EE 10gRel2. I am being told that a project (/etc/project) will not bind to the user because of a Solaris bug. According to my admin people Solaris told my company this when... (2 Replies)
Discussion started by: djehresmann
2 Replies