File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # restorecond
2
+
3
+ > Daemon that monitors file creation and automatically restores SELinux contexts.
4
+ > Useful for directories where files are frequently created with incorrect contexts.
5
+ > See also: ` restorecon ` , ` semanage-fcontext ` .
6
+ > More information: < https://manned.org/restorecond > .
7
+
8
+ - Start the ` restorecond ` daemon:
9
+
10
+ ` sudo restorecond `
11
+
12
+ - Run ` restorecond ` in [ v] erbose mode to see restoration events:
13
+
14
+ ` sudo restorecond -v `
15
+
16
+ - Run ` restorecond ` in [ d] ebug mode:
17
+
18
+ ` sudo restorecond -d `
19
+
20
+ - Use alternative restorecond.conf file:
21
+
22
+ ` sudo restorecond -f restorecond_file `
23
+
24
+ - Check the status of the restorecond service:
25
+
26
+ ` sudo systemctl status restorecond `
27
+
28
+ - Enable restorecond to start at boot:
29
+
30
+ ` sudo systemctl enable restorecond --now `
You can’t perform that action at this time.
0 commit comments