restorecon_xattr - manage security.restorecon_last
entries added by setfiles
(8) or restorecon
] [-e directory
will display the SHA1 digests added to extended
or delete the attribute completely.
These attributes are set by restorecon
(8) or setfiles
specified directories when relabeling recursively.
is useful for managing the extended attribute entries
particularly when users forget what directories they ran restorecon
filesystems do not support the
extended attribute and are automatically
excluded from searches.
By default restorecon_xattr
will display the SHA1 digests with
"Match" appended if they match the default specfile set or the
set used with the -f
option. Non-matching SHA1 digests
will be displayed with "No Match" appended. This feature can be
disabled by the -n
- delete all non-matching security.restorecon_last
directory digest entries.
- delete all security.restorecon_last directory digest
- do not read /proc/mounts to obtain a list of
non-seclabel mounts to be excluded from relabeling checks.
Setting -m is useful where there is a non-seclabel fs mounted with a
seclabel fs mounted on a directory below this.
- Do not append "Match" or "No Match" to
- recursively descend directories.
- display SHA1 digest generated by specfile set.
directory to exclude (repeat option for more than one directory).
an optional specfile containing file context entries as described in
file_contexts(5). This will be used by selabel_open(3) to
retrieve the set of labeling entries, with the SHA1 digest being retrieved
by selabel_digest(3). If the option is not specified, then the
default file_contexts will be used.
the pathname of the directory tree to be searched.