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] [-p] [-v] [-e directory ] path‐
11       name...
12
13       restorecon -f infilename [-o outfilename ] [-e directory  ]  [-R]  [-n]
14       [-p] [-v] [-F]
15
16

DESCRIPTION

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

OPTIONS

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

NOTE

61       restorecon does not follow symbolic links.
62
63

AUTHOR

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

SEE ALSO

72       load_policy(8), checkpolicy(8) setfiles(8)
73
74
75
76                                  2002031409                     restorecon(8)
Impressum