Trusted Solaris 管理の概要

getlabel と setlabel

getlabel(1) コマンドとsetlabel(1) コマンドでは、ファイルの機密ラベルを取得、設定することができます。

次の例では、myFile というファイルの初期の機密ラベルを取得し、再設定しています。

% getlabel myFile
myFile: ADMIN_LOW [C]

% setlabel -s SECRET myFile

% getlabel myFile
myFile: CONFIDENTIAL [S]