Description of problem: SELinux is preventing sa-update.cron from 'getattr' accesses on the file /usr/lib/systemd/system/amavisd.service. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that sa-update.cron should be allowed getattr access on the amavisd.service file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'sa-update.cron' --raw | audit2allow -M my-saupdatecron # semodule -X 300 -i my-saupdatecron.pp Additional Information: Source Context system_u:system_r:spamd_update_t:s0 Target Context system_u:object_r:systemd_unit_file_t:s0 Target Objects /usr/lib/systemd/system/amavisd.service [ file ] Source sa-update.cron Source Path sa-update.cron Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages amavisd-new-2.11.1-3.fc30.noarch Policy RPM selinux-policy-3.14.3-52.fc30.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.3.11-200.fc30.x86_64 #1 SMP Tue Nov 12 19:25:25 UTC 2019 x86_64 x86_64 Alert Count 1 First Seen 2019-11-19 00:41:34 EST Last Seen 2019-11-19 00:41:34 EST Local ID 932bebcf-28a4-4479-be84-598ce652a778 Raw Audit Messages type=AVC msg=audit(1574142094.346:46168): avc: denied { getattr } for pid=2873 comm="sa-update.cron" path="/usr/lib/systemd/system/amavisd.service" dev="dm-0" ino=5305619 scontext=system_u:system_r:spamd_update_t:s0 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=file permissive=0 Hash: sa-update.cron,spamd_update_t,systemd_unit_file_t,file,getattr Version-Release number of selected component: selinux-policy-3.14.3-52.fc30.noarch Additional info: component: selinux-policy reporter: libreport-2.10.1 hashmarkername: setroubleshoot kernel: 5.3.11-200.fc30.x86_64 type: libreport
A PR has been sent for a review: https://github.com/fedora-selinux/selinux-policy-contrib/pull/168
Hi Zdenek, In bugzilla you mentioned that PR has been sent for review but on github PR is in WIP [Work In Progress] state. I'm confused, what is real state? Thanks, Lukas.
It was switched back soon after the request, now it is ready.
Same SELinux alert.
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
This bug was accidentally closed due to a query error. Reopening.
Clearing the needinfo flag as the PR has been completed.
Backported to F30. commit 512ed33db9ffa5f6e51afde6c129bf376461424a (HEAD -> rawhide, origin/rawhide, origin/HEAD) Author: Zdenek Pytela <zpytela> Date: Fri Nov 15 11:09:39 2019 +0100 Allow spamd_update_t access antivirus_unit_file_t BZ(1774092) Label /usr/lib/systemd/system/amavisd.service as antivirus_unit_file_t. Allow antivirus_systemctl(spamd_update_t).
FEDORA-2019-e9d8868185 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
container-selinux-2.123.0-2.fc30, selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
container-selinux-2.123.0-2.fc30, selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.