Bug 607897
| Summary: | ClamAV freshclam leaked fd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | tlhackque |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 13 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.7.19-57.fc13 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-09-22 00:38:06 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
tlhackque
2010-06-25 06:33:44 UTC
Looks like we need corecmd_exec_shell(freshclam_t) Fixed in selinux-policy-3.7.19-32.fc13 selinux-policy-3.7.19-33.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-33.fc13 selinux-policy-3.7.19-33.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-33.fc13 selinux-policy-3.7.19-33.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. I'm not sure what your exact fix was, but it took me several iterations to get freshclam working. One complication is that I have several OnxxExecute statements in freshclam.conf - e.g.: OnErrorExecute /usr/bin/logger -is -p mail.warning "database update failed, see /var/log/clamav/freshclam.log" Anyhow, the (so far) final policy tweaks that I'm using are: # Freshclam bug (https://bugzilla.redhat.com/show_bug.cgi?id=607897) #============= freshclam_t ============== corecmd_exec_shell(freshclam_t); allow freshclam_t bin_t:file { execute getattr }; allow freshclam_t bin_t:lnk_file read; allow freshclam_t proc_t:file { open read getattr }; allow freshclam_t clamd_var_log_t:file read; allow freshclam_t bin_t:file { read open execute_no_trans }; Note that any arbitrary command can be specified here - I don't know whether what I came up with covers commands other than the ones I currently use. I'm currently running policy 3.7.19-51.fc13, so while I might have been able to remove some of my local tweaks, I did have to add to them as recently as last night.... So someone with expert knowledge of selinux needs to revist the policy. Thanks. Oh, I should have mentioned that the clamd_var_log_t is because freshclam reads the clamd log file to submit detection statistics - see SubmitDetectionStats /etc/clamd.d/scan.conf in the freshclam.conf file... Those look good to me. Fixed in selinux-policy-3.7.19-55.fc13 selinux-policy-3.7.19-57.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13 selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13 selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |