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

m_label(3TSOL)					       Trusted Extensions Library Functions					    m_label(3TSOL)

NAME
m_label, m_label_alloc, m_label_dup, m_label_free - m_label functions SYNOPSIS
cc [flag...] file... -ltsol [library...] #include <tsol/label.h> m_label_t *m_label_alloc(const m_label_type_t label_type); int m_label_dup(m_label_t **dst, const m_label_t *src); void m_label_free(m_label_t *label); DESCRIPTION
The m_label_alloc() function allocates resources for a new label. The label_type argument defines the type for a newly allocated label. The label type can be: MAC_LABEL A Mandatory Access Control (MAC) label. USER_CLEAR A user clearance. The m_label_dup() function allocates resources for a new dst label. The function returns a pointer to the allocated label, which is an exact copy of the src label. The caller is responsible for freeing the allocated resources by calling m_label_free(). The m_label_free() function frees resources that are associated with the previously allocated label. RETURN VALUES
Upon successful completion, the m_label_alloc() function returns a pointer to the newly allocated label. Otherwise, m_label_alloc() returns NULL and errno is set to indicate the error. Upon successful completion, the m_label_dup() function returns 0. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The m_label_alloc() function will fail if: EINVAL Invalid parameter. ENOMEM The physical limits of the system are exceeded by size bytes of memory which cannot be allocated. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
label_to_str(3TSOL), libtsol(3LIB), str_to_label(3TSOL), label_encodings(4), attributes(5), labels(5) Determining Whether the Printing Service Is Running in a Labeled Environment in Solaris Trusted Extensions Developer's Guide 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 m_label(3TSOL)
Man Page