The Trusted Solaris environment provides two special types of directories for storing files and subdirectories with different labels and keeping them separate:
multilevel directory (MLD) - is a special type of directory that transparently stores information by label in separate subdirectories called single-level directories. Your administrator typically creates your home directory as multilevel directory.
single-level directory (SLD) - is a hidden subdirectory within a multilevel directory containing files and optionally subdirectories at a single label only.
When you attempt to view or access files in a multilevel directory, (either through an application such as the File Manager or through a shell using standard commands), only those files that are at your current label are visible and accessible. If you keep files at different labels in your home directory, for example, you cannot normally view files at labels other than your current label.
The following figure illustrates the concept of hidden single-level directories within a multilevel directory. The top part of the figure shows the contents of a multilevel home directory called /myHomeDir from the user's view while working at Confidential A B; the lower part of the figure shows the user at Secret A B. Hidden directories and files are indicated with dashed lines and unbolded text; the solid lines and bolded text indicate visible ones. (Note that the labels associated with the single-level directories are shown in their short form inside parentheses; the labels do not actually appear in the directory names.)
While working at Confidential A B, the user has the following results when trying to list the contents of the /myHomeDir directory:
% pwd /myhomedir % ls file1 |
At Secret A B, the user sees these results:
% pwd /myhomedir % ls file2 file3 |