mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
740 B
740 B
restorecond
Daemon that monitors file creation and automatically restores SELinux contexts. Useful for directories where files are frequently created with incorrect contexts. See also:
restorecon,semanage-fcontext. More information: https://manned.org/restorecond.
- Start the
restoreconddaemon:
sudo restorecond
- Run
restorecondin [v]erbose mode to see restoration events:
sudo restorecond -v
- Run
restorecondin [d]ebug mode:
sudo restorecond -d
- Use alternative
restorecond.conffile:
sudo restorecond -f restorecond_file
- Check the status of the restorecond service:
sudo systemctl status restorecond
- Enable restorecond to start at boot:
sudo systemctl enable restorecond --now