Trusted Solaris Label Administration

To Assign a Color to a Label or Word


Note -

If no color is defined for a classification in the COLOR NAMES section of the label_encodings file, the color black is used.


  1. In the security administrator role, open the label_encodings file for editing.

    See "To Modify the label_encodings (4) File", if needed.

  2. Find the COLOR NAMES section.


    COLOR NAMES:
              label= Admin_Low;       color= #bdbdbd;    
              label= u;       color= green; 
              label= c;       color= blue;  
    
              label= s;       color= yellow; 
              label= ts;      color= red; 
    
              word= sb;       color= cyan; 
              word= cc;       color= magenta;
    
              label= Admin_High;      color= #636363;
  3. Optionally, define colors for individual compartment words.

    To distinguish certain compartment words irrespective of the classification with which they may be associated, assign a separate color to those words.


    word= EMG; color= RedOrange;
  4. Optionally, define colors for sensitivity labels.

    In the example, the color assigned to NEED_TO_KNOW SYSADM is bluePurple.


    label= NEED TO KNOW SYSADM; color= bluePurple;
  5. Make sure a color is defined for each classification.

    If a color is not defined for a classification, the background color used is black, so, make sure to define every classification.

    In the screen below, the classification REGISTERED is assigned the color red, and the NEED_TO_KNOW SYSADM classification is assigned the color blue.


    label= REGISTERED;  color= red;
    label= NEED TO KNOW; color= blue;

    The three steps shown combined in the following example have the following results:

    • Any label with the word EMG always displays with the color RedOrange.

    • The label NEED_TO_KNOW SYSADM always displays with the color orange.

    • Any other label containing the NEED_TO_KNOW classification displays with the color blue (unless the label contains the word EMG).

    • Any label with the REGISTERED classification displays with the color red

    • Any label with any classification not defined displays with the color black


    word= EMG; color= RedOrange;
    label= NEED TO KNOW SYSADM; color= bluePurple;
    label= REGISTERED;  color= red;
    label= NEED TO KNOW; color= blue;
  6. If you are done, save and close the file.