| Summary: | SELinux is preventing amavisd from 'read' accesses on the lnk_file log. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Quentin Armitage <quentin> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:47fe166c4eaddd2d4d8d4c68a7dce62c5de02a0e845c5d3fad0408e839b6adc5;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-20 21:44:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 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. |
Description of problem: The problem occurred at upgrading from amavisd-2.10.1-5 to 2.11-0.3 (also to 2.11.0.4). Downgrading amavisd to 2.10.1-5 stops the problem occurring. SELinux is preventing amavisd from 'read' accesses on the lnk_file log. ***** Plugin catchall_boolean (89.3 confidence) suggests ****************** If you want to allow antivirus to can scan system Then you must tell SELinux about this by enabling the 'antivirus_can_scan_system' boolean. You can read 'None' man page for more details. Do setsebool -P antivirus_can_scan_system 1 ***** Plugin catchall (11.6 confidence) suggests ************************** If you believe that amavisd should be allowed read access on the log lnk_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 'amavisd' --raw | audit2allow -M my-amavisd # semodule -X 300 -i my-amavisd.pp Additional Information: Source Context system_u:system_r:antivirus_t:s0 Target Context system_u:object_r:tmpfs_t:s0 Target Objects log [ lnk_file ] Source amavisd Source Path amavisd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-158.24.fc23.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.8.8-100.fc23.x86_64 #1 SMP Tue Nov 15 18:51:53 UTC 2016 x86_64 x86_64 Alert Count 31148 First Seen 2016-07-27 14:09:15 BST Last Seen 2016-12-01 16:20:15 GMT Local ID 811f487c-3718-4b55-96cb-a117badfb236 Raw Audit Messages type=AVC msg=audit(1480609215.558:15374): avc: denied { read } for pid=13438 comm="/usr/sbin/amavi" name="log" dev="tmpfs" ino=1853790 scontext=system_u:system_r:antivirus_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=lnk_file permissive=0 Hash: amavisd,antivirus_t,tmpfs_t,lnk_file,read Version-Release number of selected component: selinux-policy-3.13.1-158.24.fc23.noarch Additional info: reporter: libreport-2.6.4 hashmarkername: setroubleshoot kernel: 4.8.10-100.fc23.x86_64 type: libreport