1restorecon(8)                                                    restorecon(8)
2
3
4

NAME

6       restorecon - restore file(s) default SELinux security contexts.
7
8

SYNOPSIS

10       restorecon [-o outfilename ] [-R] [-n] [-v] [-e directory ] pathname...
11
12       restorecon  -f  infilename  [-o outfilename ] [-e directory ] [-R] [-n]
13       [-v] [-F]
14
15

DESCRIPTION

17       This manual page describes the restorecon program.
18
19       This program is primarily used to set the  security  context  (extended
20       attributes) on one or more files.
21
22       It  can  be  run  at any time to correct errors, to add support for new
23       policy, or with the -n option it can just check whether the  file  con‐
24       texts are all as you expect.
25
26

OPTIONS

28       -i     ignore files that do not exist
29
30       -f infilename
31              infilename  contains a list of files to be processed by applica‐
32              tion. Use - for stdin.
33
34       -e directory
35              directory to exclude (repeat option for  more  than  one  direc‐
36              tory.)
37
38       -R -r  change files and directories file labels recursively
39
40       -n     don't change any file labels.
41
42       -o outfilename
43              save list of files with incorrect context in outfilename.
44
45       -v     show changes in file labels.
46
47       -vv    show  changes  in file labels, if type, role, or user are chang‐
48              ing.
49
50       -F     Force reset of context to match  file_context  for  customizable
51              files, or the user section, if it has changed.
52
53
54       ARGUMENTS
55              pathname...  The pathname for the file(s) to be relabeled.
56

NOTE

58       restorecon does not follow symbolic links.
59
60

AUTHOR

62       This  man  page  was written by Dan Walsh <dwalsh@redhat.com>.  Some of
63       the content of this man page was taken from the setfiles man page writ‐
64       ten  by  Russell Coker <russell@coker.com.au>.  The program was written
65       by Dan Walsh <dwalsh@redhat.com>.
66
67

SEE ALSO

69       load_policy(8), checkpolicy(8) setfiles(8)
70
71
72
73                                  2002031409                     restorecon(8)
Impressum