*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> setfsmac (8)              
Title
Content
Arch
Section
 

SETFSMAC(8)

Contents


NAME    [Toc]    [Back]

     setfsmac -- set MAC label for a file hierarchy

SYNOPSIS    [Toc]    [Back]

     setfsmac [-ehvx] [-f specfile] ... [-s specfile] ... file ...

DESCRIPTION    [Toc]    [Back]

     The setfsmac utility accepts a list of specification files as input and
     sets the MAC labels on the specified file system hierarchies.  Path names
     specified will be visited in order as given on the command line, and each
     tree will be traversed in pre-order.  (Generally, it will not be very
     useful to use relative paths instead of absolute paths.)  Multiple
     entries matching a single file will be combined and applied in a single
     transaction.

     The following options are available:

     -e      Treat any file systems encountered which do not support MAC
	     labelling as errors, instead of warning and skipping them.

     -f specfile
	     Apply the specifications in specfile to the specified paths.
	     NOTE: Only the first entry for each file is applied; all others
	     are disregarded and silently dropped.  Multiple -f arguments may
	     be specified to include multiple specification files.

     -h      When a symbolic link is encountered, change the label of the link
	     rather than the file the link points to.

     -s specfile
	     Apply the specifications in specfile, but assume the specification
 format is compatible with the SELinux specfile format.
	     NOTE: Only the first entry for each file is applied; all others
	     are disregarded and silently dropped.  The prefix ``sebsd/'' will
	     be automatically prepended to the labels in specfile.  Labels
	     matching ``<<none>>'' will be explicitly not relabeled.  This
	     permits SEBSD to reuse existing SELinux policy specification
	     files.

     -v      Increase the degree of verbosity.

     -x      Do not recurse into new file systems when traversing them.

FILES    [Toc]    [Back]

     /usr/share/security/lomac-policy.contexts	Sample specfile containing
						LOMAC policy entries.

EXAMPLES    [Toc]    [Back]

     See FILES.

AUTHORS    [Toc]    [Back]

     This software was contributed to the FreeBSD Project by Network Associates
 Labs, the Security Research Division of Network Associates Inc.
     under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the
     DARPA CHATS research program.

SEE ALSO    [Toc]    [Back]

      
      
     mac(3), mac_set_file(3), mac_set_link(3), mac(4), re_format(7),
     getfmac(8), setfmac(8), mac(9)


FreeBSD 5.2.1			March 13, 2003			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
MrmOpenHierarchyPerDisplay Tru64 Allocates a hierarchy ID and opens all the UID files in the hierarchy
MrmOpenHierarchy HP-UX Allocates a hierarchy ID and opens all the UID files in the hierarchy
MrmOpenHierarchyPerDisplay HP-UX Allocates a hierarchy ID and opens all the UID files in the hierarchy
MrmOpenHierarchy Tru64 Allocates a hierarchy ID and opens all the UID files in the hierarchy
MrmOpenHierarchy IRIX Allocates a hierarchy ID and opens all the UID files in the hierarchy
MrmOpenHierarchyPerDisplay IRIX Allocates a hierarchy ID and opens all the UID files in the hierarchy
fts FreeBSD traverse a file hierarchy
fts_set FreeBSD traverse a file hierarchy
fts_read FreeBSD traverse a file hierarchy
find OpenBSD walk a file hierarchy
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service