Skip to content

Commit 12b1a70

Browse files
committed
restorecond: add page
1 parent 3595957 commit 12b1a70

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pages/linux/restorecond.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 verbose mode to see restoration events:
13+
14+
`sudo restorecond -v`
15+
16+
- Run restorecond in debug mode:
17+
18+
`sudo restorecond -d`
19+
20+
- Run restorecond in foreground mode (do not daemonize):
21+
22+
`sudo restorecond -f`
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 --now restorecond`

0 commit comments

Comments
 (0)