When install on a RHEL8 (tested in 8.4) with selinux configured with enforcing option (default config un redhat) installation fails because of selinux policy on /var/log
`022/04/08 10:43:21 [info] service: control action: install
2022/04/08 10:43:21 [fatal] service: starting: Failed to start AdGuard Home service: exit status 1`
Hello and apologies for the late response. I'm not sure if this is a bug with AdGuard Home or with one of our dependencies, but we'll definitely look into it.
Problem Description
When install on a RHEL8 (tested in 8.4) with selinux configured with enforcing option (default config un redhat) installation fails because of selinux policy on /var/log `022/04/08 10:43:21 [info] service: control action: install
2022/04/08 10:43:21 [fatal] service: starting: Failed to start AdGuard Home service: exit status 1`
Message on audit.log
type=AVC msg=audit(1649408272.667:522): avc: denied { create } for pid=11775 comm="(mkdir)" name="AdGuardHome.out" scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=0
Proposed Solution
touch /var/log/AdGuardHome.out semanage fcontext -a -t var_log_t /var/log/AdGuardHome.out restorecon -Rv /var/log/AdGuardHome.out