1restorecon_xattr(8)          SELinux User Command          restorecon_xattr(8)
2
3
4

NAME

6       restorecon_xattr  -  manage  security.sehash extended attribute entries
7       added by setfiles(8) or restorecon(8).
8
9

SYNOPSIS

11       restorecon_xattr [-d] [-D] [-m] [-n] [-r] [-v] [-e directory] [-f spec‐
12       file] pathname
13
14

DESCRIPTION

16       restorecon_xattr  will display the SHA256 digests added to extended at‐
17       tributes security.sehash or delete the attribute completely. These  at‐
18       tributes  are set by restorecon(8) or setfiles(8) to specified directo‐
19       ries when relabeling recursively.
20
21       restorecon_xattr is useful for managing the extended attribute  entries
22       particularly  when users forget what directories they ran restorecon(8)
23       or setfiles(8) from.
24
25       RAMFS and TMPFS filesystems do not support the security.sehash extended
26       attribute and are automatically excluded from searches.
27
28       By  default  restorecon_xattr  will  display  the  SHA256  digests with
29       "Match" appended if they match the default specfile set or the specfile
30       set  used  with the -f option. Non-matching SHA256 digests will be dis‐
31       played with "No Match" appended.  This feature can be disabled  by  the
32       -n option.
33
34

OPTIONS

36       -d     delete  all  non-matching  security.sehash  directory digest en‐
37              tries.
38
39       -D     delete all security.sehash directory digest entries.
40
41       -m     do not read /proc/mounts to obtain a list of non-seclabel mounts
42              to be excluded from relabeling checks.
43              Setting  -m  is  useful where there is a non-seclabel fs mounted
44              with a seclabel fs mounted on a directory below this.
45
46       -n     Do not append "Match" or "No Match" to displayed digests.
47
48       -r     recursively descend directories.
49
50       -v     display SHA256 digest generated by specfile set (Note that  this
51              digest is not used to match the security.sehash directory digest
52              entries, and is shown for reference only).
53
54       -e     directory
55              directory to exclude (repeat option for  more  than  one  direc‐
56              tory).
57
58       -f     specfile
59              an  optional  specfile  containing  file  context entries as de‐
60              scribed in file_contexts(5).  If the option  is  not  specified,
61              then the default file_contexts will be used.
62
63

ARGUMENTS

65       pathname
66              the pathname of the directory tree to be searched.
67
68

EXAMPLE

70       List all paths that where assigned a checksum by "restorecon/setfiles -D"
71       # restorecon_xattr -r /
72       Remove all non-matching checksums
73       # restorecon_xattr -rd /
74
75

SEE ALSO

77       restorecon(8), setfiles(8)
78
79
80
81                                 24 Sept 2016              restorecon_xattr(8)
Impressum