Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

updatehome(1m) [opensolaris man page]

updatehome(1M)						  System Administration Commands					    updatehome(1M)

NAME
updatehome - update the home directory copy and link files for the current label SYNOPSIS
/usr/bin/updatehome [-cirs] DESCRIPTION
updatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label. The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's favorite files are available for use. For example, the user probably wants a symbolic link to such files as .profile, .login, .cshrc, .exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to those to be copied (.copy_files) and to those to be symbolically linked (.link_files). OPTIONS
-c Replace existing home-directory copies at the current label. The default is to skip over existing copies. -i Ignore errors encountered. The default aborts on error. -r Replace existing home-directory copies or symbolic links at the current label. This option implies options -c and -s. The default is to skip over existing copies or symbolic links. -s Replace existing home-directory symbolic links at the current label. The default is to skip over existing symbolic links. EXIT STATUS
Upon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error. EXAMPLES
Example 1 A Sample .copy_files File The files that are listed in .copy_files can be modified at every user's label. .cshrc .mailrc .mozilla/bookmarks.html Example 2 A Sample .link_files File The files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available to the user. ~/bin .mozilla/preferences .xrc .rhosts Example 3 Updating the Linked and Copied Files The .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the links. No privileges are required to run the command. % updatehome -r FILES
$HOME/.copy_files List of files to be copied $HOME/.link_files List of files to be symbolically linked ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWtsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) .copy_files and .link_files Files in Solaris Trusted Extensions Administrator's Procedures NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. SunOS 5.11 20 Jul 2007 updatehome(1M)

Check Out this Related Man Page

setlabel(1)							   User Commands						       setlabel(1)

NAME
setlabel - move files to zone with corresponding sensitivity label SYNOPSIS
/usr/bin/setlabel newlabel filename... DESCRIPTION
setlabel 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. EXIT STATUS
setlabel exits with one of the following values: 0 Successful completion. 1 Usage error. 2 Error in getting, setting or translating the label. USAGE
On the command line, enclose the label in double quotes unless the label is only one word. Without quotes, a second word or letter sepa- rated by a space is interpreted as a second argument. % setlabel SECRET somefile % setlabel "TOP SECRET" somefile 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. % setlabel "ts a b" somefile % setlabel "ts,a,b" somefile % setlabel "ts/a b" somefile % setlabel " TOP SECRET A B " somefile EXAMPLES
Example 1 Set a Label. To set somefile's label to SECRET A: example% setlabel "Secret a" somefile Example 2 Turn On a Compartment. Plus and minus signs can be used to modify an existing label. A plus sign turns on the specified compartment for somefile's label. example% setlabel +b somefile Example 3 Turn Off a Compartment. A minus sign turns off the compartments that are associated with a classification. To turn off compartment A in somefile's label: example% setlabel -A somefile 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: example% setlabel -- -A somefile ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWtsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
setflabel(3TSOL), label_encodings(4), attributes(5) NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. This 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). SunOS 5.11 20 Jul 2007 setlabel(1)
Man Page