Solaris Trusted Extensions Installation and Configuration for Solaris 10 11/06 and Solaris 10 8/07 Releases

ProcedureCheck and Install Your Label Encodings File

Your encodings file must be compatible with any Trusted Extensions host with which you are communicating.


Note –

Trusted Extensions installs a default label_encodings file. This default file is useful for demonstrations. However, this file might not be a good choice for your use. If you plan to use the default file, you can skip this procedure.



Caution – Caution –

You must successfully install labels before continuing, or the configuration will fail.


Before You Begin

As the security administrator, you have just added the Trusted Extensions packages, so you are already logged in.

The security administrator is responsible for editing, checking, and maintaining the label_encodings file. If you plan to edit the label_encodings file, make sure that the file itself is writable. For more information, see the label_encodings(4) man page.

  1. Insert the media with the label_encodings file into the appropriate device.

  2. Copy the label_encodings file to the disk.

  3. Check the syntax of the new label encodings file.

    1. Open the Trusted_Extensions folder.

      Click mouse button 3 on the background.

    2. From the Workspace menu, choose Applications -> Application Manager.

    3. Double-click the Trusted_Extensions folder icon.

      Illustration shows the Trusted_Extensions folder icon.
  4. Double-click the Check Encodings action.

    In the dialog box, type the full path name to the file:


    /full-pathname-of-label-encodings-file
    

    The chk_encodings command is invoked to check the syntax of the file. The results are displayed in the Check Encodings dialog box.

  5. Read the contents of the Check Encodings dialog box.

  6. Do one of the following:

    CONTINUE

    If the Check Encodings action reports no errors, you can continue. Go to Step 7.

    RESOLVE ERRORS

    If the Check Encodings action reports errors, the errors must be resolved before continuing. For assistance, see Chapter 3, Making a Label Encodings File (Tasks), in Solaris Trusted Extensions Label Administration.

  7. If the file passes the syntax check, click Yes.

    The Check Encodings action creates a backup copy of the original file, then installs the checked version in /etc/security/tsol/label_encodings. The action then restarts the label daemon.


    Caution – Caution –

    Your label encodings file must pass the Check Encodings test before you continue.



Example 4–1 Checking label_encodings Syntax on the Command Line

In this example, the administrator tests several label_encodings files by using the command line.


# /usr/sbin/chk_encodings /var/encodings/label_encodings1
No errors found in /var/encodings/label_encodings1
# /usr/sbin/chk_encodings /var/encodings/label_encodings2
No errors found in /var/encodings/label_encodings2

When management decides to use the label_encodings2 file, the administrator runs a semantic analysis of the file.


# /usr/sbin/chk_encodings -a /var/encodings/label_encodings2
No errors found in /var/encodings/label_encodings2

---> VERSION = MYCOMPANY LABEL ENCODINGS  2.0 10/10/2006

---> CLASSIFICATIONS <---

   Classification 1: PUBLIC
   Initial Compartment bits: 10
   Initial Markings bits: NONE

---> COMPARTENTS AND MARKINGS USAGE ANALYSIS <---
...
---> SENSITIVITY LABEL to COLOR MAPPING <---
...

The administrator prints a copy of the semantic analysis for her records, then moves the file to the /etc/security/tsol directory.


# cp /var/encodings/label_encodings2 /etc/security/tsol/label.encodings.10.10.06

# cd /etc/security/tsol
# cp label_encodings label_encodings.tx.orig
# cp label.encodings.10.10.06 label_encodings

Finally, the administrator verifies that the label_encodings file is the company file.


# /usr/sbin/chk_encodings -a /etc/security/tsol/label_encodings | head -4
No errors found in /etc/security/tsol/label_encodings

---> VERSION = MYCOMPANY LABEL ENCODINGS  2.0 10/10/2006