Trusted Solaris Administrator's Procedures

To Get a Hexadecimal Equivalent for a Label

Use atohexlabel(1M) with the options shown in the following steps to get the hexadecimal equivalents of a label or clearance. The atohexlabel(1M) command is in the default Object Label Management profile, which is assigned by default to the Security Administrator role.

  1. Assume the Security Administrator role and create an ADMIN_HIGH workspace.

    To get the hexadecimal value for a sensitivity label, use atohexlabel with the -s option followed by the name of the sensitivity label.


    $ atohexlabel -s SECRET
    0x00050c0000000000000000000000000000000000000000000003ffffffffffff0000
  2. To get the hexadecimal value for a clearance label, use atohexlabel with the -c option followed by the name of the clearance.


    $ atohexlabel -c SECRET
    0x00050c0000000000000000000000000000000000000000000003ffffffffffff0000