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 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 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;
  6. If you are done, save and close the file.