I have a nice borgmatic script up and running that grabs all my worthy files (mainly from /etc and /home) and backs it up. Now I want to automate it with cron. Unfortunately SELinux does not agree on reading my home:
SELinux is preventing systemd from open access on the file
/etc/systemd/system/borgmatic.timer.
***** Plugin restorecon (99.5 confidence) suggests ************************
If you want to fix the label.
/etc/systemd/system/borgmatic.timer default label should be
systemd_unit_file_t. Then you can run restorecon. The access
attempt may have been stopped due to insufficient permissions
to access a parent directory in which case try to change the
following command accordingly.
Do
# /sbin/restorecon -v /etc/systemd/system/borgmatic.timer
I followed their recomendation:
/sbin/restorecon -v /etc/systemd/system/borgmatic.service
Relabeled /etc/systemd/system/borgmatic.service from unconfined_u:object_r:user_home_t:s0 to unconfined_u:object_r:systemd_unit_file_t:s0