Skip to content

Commit 45f453d

Browse files
pranlawatedmmqzManagor
authored
restorecond: add page (#18458)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Managor <[email protected]>
1 parent 78bf060 commit 45f453d

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 [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`

0 commit comments

Comments
 (0)