1fixfiles(8)                                                        fixfiles(8)
2
3
4

NAME

6       fixfiles - fix file SELinux security contexts.
7
8

SYNOPSIS

10       fixfiles  [-F]  [-l logfile ] { check | restore|[-f] relabel | verify }
11       [[dir/file] ... ]
12
13       fixfiles [-F] [ -R rpmpackagename[,rpmpackagename...] ] [-l logfile ] {
14       check | restore | verify }
15
16       fixfiles  [ -C PREVIOUS_FILECONTEXT ] [-l logfile ] { check | restore |
17       verify }
18
19       fixfiles onboot
20
21

DESCRIPTION

23       This manual page describes the fixfiles script.
24
25       This script is primarily used to correct the security context  database
26       (extended attributes) on filesystems.
27
28       It  can  also be run at any time to relabel when adding support for new
29       policy, or  just check whether the file contexts are all as you expect.
30       By  default  it  will  relabel all mounted ext2, ext3, xfs and jfs file
31       systems as long as they do not have a security  context  mount  option.
32       You can use the -R flag to use rpmpackages as an alternative.  The file
33       /etc/selinux/fixfiles_exclude_dirs can contain a  list  of  directories
34       excluded from relabelling.
35
36       fixfiles onboot will setup the machine to relabel on the next reboot.
37
38

OPTIONS

40       -l logfile
41              Save the output to the specified logfile
42
43       -F     Force  reset  of  context to match file_context for customizable
44              files
45
46
47       -f     Clear /tmp directory with out prompt for removal.
48
49
50       -R rpmpackagename[,rpmpackagename...]
51              Use the rpm database to discover all files within the  specified
52              packages  and restore the file contexts.  (-a will get all files
53              in the RPM database).
54
55       -C PREVIOUS_FILECONTEXT
56              Run a diff on  the PREVIOUS_FILECONTEXT file  to  the  currently
57              installed one, and restore the context of all affected files.
58
59

ARGUMENTS

61       One of:
62
63       check  print  any  incorrect  file  context labels, showing old and new
64              context, but do not change them.
65
66       restore
67              change any incorrect file context labels.
68
69       relabel
70              Prompt for removal of contents of /tmp directory and then change
71              any incorrect file context labels to match the install file_con‐
72              texts file.
73
74       verify List out files with incorrect file context labels,  but  do  not
75              change them.
76
77       [[dir/file] ... ]
78              List  of  files or directories trees that you wish to check file
79              context on.
80
81

AUTHOR

83       This man page was written  by  Richard  Hally  <rhally@mindspring.com>.
84       The script  was written by Dan Walsh <dwalsh@redhat.com>
85
86

SEE ALSO

88       setfiles(8),restorecon(8)
89
90
91
92
93                                  2002031409                       fixfiles(8)
Impressum