1restorecon_xattr(8) SELinux User Command restorecon_xattr(8)
2
3
4
6 restorecon_xattr - manage security.sehash extended attribute entries
7 added by setfiles(8) or restorecon(8).
8
9
11 restorecon_xattr [-d] [-D] [-m] [-n] [-r] [-v] [-e directory] [-f spec‐
12 file] pathname
13
14
16 restorecon_xattr will display the SHA1 digests added to extended
17 attributes security.sehash or delete the attribute completely. These
18 attributes are set by restorecon(8) or setfiles(8) to specified direc‐
19 tories 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 SHA1 digests with "Match"
29 appended if they match the default specfile set or the specfile set
30 used with the -f option. Non-matching SHA1 digests will be displayed
31 with "No Match" appended. This feature can be disabled by the -n
32 option.
33
34
36 -d delete all non-matching security.sehash directory digest
37 entries.
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 SHA1 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
60 described in file_contexts(5). If the option is not specified,
61 then the default file_contexts will be used.
62
63
65 pathname
66 the pathname of the directory tree to be searched.
67
68
70 restorecon(8), setfiles(8)
71
72
73
74 24 Sept 2016 restorecon_xattr(8)