How to Install Labels in Oracle Solaris

You must be the initial user or an administrator with the Software Installation rights profile. The root role has all of these rights. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  1. Install the pkg:/system/file_labeling package.
    # pkg install file_labeling
  2. Verify that the labeld:clearance service is enabled.

    $ svcs labeld:clearance
    STATE          STIME    FMRI
    online         Nov_18   svc:/system/labeld:clearance
  3. View the current label policy by using the labelcfg list command.

    To view the policy details, use the labelcfg info command. For more information, see the labelcfg(8) man page. For sample output, see Viewing and Testing Sample Label Encodings Files.