This program is primarily used to initialise the security context database (extended attributes) on one or more filesystems. This program is initially run as part of the SE Linux installation process.
It can also be run at any time to correct errors, to add support for new policy, or with the -n option it can just check whether the file contexts are all as you expect.
|-c||check the validity of the contexts against the specified binary policy.|
|-d||show what specification matched each file.|
|-l||log changes in file labels to syslog.|
|-n||dont change any file labels.|
|-q||suppress non-error output.|
|use an alternate root path|
|directory to exclude (repeat option for more than one directory.)|
|-F||Force reset of context to match file_context for customizable files|
|save list of files with incorrect context in filename.|
|-s||take a list of files from standard input instead of using a pathname on the command line.|
|-v||show changes in file labels, if type or role are changing.|
|-vv||show changes in file labels, if type, role, or user are changing.|
display warnings about entries that had no matching files.
The pathname for the root directory of each file system to be relabeled.
Not used if the
-s option is used.