restorecond
Daemon that monitors file creation and automatically restores SELinux contexts. tldr-pages
On Linux
Linux
Daemon that monitors file creation and automatically restores SELinux contexts. Useful for directories where files are frequently created with incorrect contexts.
Start the restorecond daemon
sudo restorecondIdentifyRun restorecond in verbose mode to see restoration events
sudo restorecond -vIdentifyRun restorecond in debug mode
sudo restorecond -dIdentifyUse alternative restorecond.conf file
sudo restorecond -f restorecond_fileIdentifyCheck the status of the restorecond service
sudo systemctl status restorecondIdentifyEnable restorecond to start at boot
sudo systemctl enable restorecond --nowIdentify