Localizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (937 KB)
setlabel(1)NAME | Synopsis | Description | Return Values | Attributes | Usage | Examples | Notes | See Also NAME
Synopsis/usr/bin/setlabel newlabel filename... Descriptionsetlabel moves files into the zone whose label corresponds to newlabel. The old file pathname is adjusted so that it is relative to the root pathname of the new zone. If the old pathname for a file's parent directory does not exist as a directory in the new zone, the file is not moved. Once moved, the file might no longer be accessible in the current zone. Unless newlabel and filename have been specified, no labels are set. Labels are defined by the security administrator at your site. The system always displays labels in uppercase. Users can enter labels in any combination of uppercase and lowercase. Incremental changes to labels are supported. Refer to setflabel(3TSOL) for a complete description of the conditions that are required to satisfy this command, and the privileges that are needed to execute this command. Return Values
setlabel exits with one of the following values: AttributesSee attributes(5) for descriptions of the following attributes:
UsageOn the command line, enclose the label in double quotes unless the label is only one word. Without quotes, a second word or letter separated by a space is interpreted as a second argument.
Use any combination of upper and lowercase letters. You can separate items in a label with blanks, tabs, commas or slashes (/). Do not use any other punctuation.
ExamplesExample 1 To Set a LabelTo set somefile's label to SECRET A:
Example 2 To Turn On a CompartmentPlus and minus signs can be used to modify an existing label. A plus sign turns on the specified compartment for somefile's label.
Example 3 To Turn Off a CompartmentA minus sign turns off the compartments that are associated with a classification. To turn off compartment A in somefile's label:
If an incremental change is being made to an existing label and the first character of the label is a hyphen (-), a preceding double-hyphen (–-) is required. To turn off compartment -A in somefile's label:
NotesThis implementation of setting a label is meaningful for the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. For more information, see label_encodings(4). See AlsoSunOS 5.10 Last Revised 31 May 2006NAME | Synopsis | Description | Return Values | Attributes | Usage | Examples | Notes | See Also |
||||||||||||