Trusted Extensions Library Functions tsol_getrhtype(3TSOL)
NAME
tsol_getrhtype - get trusted network host type
SYNOPSIS
cc [flag...] file... -ltsnet [library...]
#include
tsol_host_type_t tsol_getrhtype(char *hostname);
DESCRIPTION
The tsol_getrhtype() function queries the kernel-level net-
work information to determine the host type that is associ-
ated with the specified hostname. The hostname can be a reg-
ular hostname, an IP address, or a network wildcard address.RETURN VALUES
The returned value will be one of the enumerated types thatis defined in the tsol_host_type_t typedef. Currently these
types are UNLABELED and SUN_CIPSO.
FILES/etc/security/tsol/tnrhdb Trusted network remote-host
databaseATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_______________________|___________________________________|
| Interface Stability | Committed ||_______________________|___________________________________|
| MT-Level | MT-Safe |
|_______________________|___________________________________|
SEE ALSO
libtsnet(3LIB), attributes(5) Obtaining the Remote Host Type in Oracle Solaris Trusted Extensions Developer's Guide NOTESSunOS 5.11 Last change: 20 Jul 2007 1
Trusted Extensions Library Functions tsol_getrhtype(3TSOL)
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.SunOS 5.11 Last change: 20 Jul 2007 2