Trusted Solaris Developer's Guide

Data Types, Header Files, and Libraries

To use the programming interfaces described in this chapter, you need the following header file.


#include <tsol/mld.h>

The examples in this chapter compile with the following library:


-ltsol

Sensitivity Label

The bslabel_t type definition represents the sensitivity label portion of a binary CMW label. The getsldname(2) system call accepts a variable of type bslabel_t.

Status

The stat structure contains information on a specified MLD, SLD, or symbolic link. The structure is returned by the mldstat(3TSOL) and mldlstat(3TSOL) system calls.

Type 

Field 

Description 

Default 

mode_t 

st_mode

File type and permissions. 

nlink_t 

st_nlink

Number of hard links. 

uid_t 

st_uid

User ID of owner. 

gid_t 

st_gid

Group Id of owner. 

time_t 

st_atime

Last access time in seconds. 

Current time 

time_t 

st_mtime

Last modify time in seconds. 

Current time 

time_t 

st_ctime

Last inode change time in seconds. 

Current time