Bug 635094

Summary: selinux is blocking the clamd service
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 14   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-23 07:33: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:
Embargoed:
Bug Depends On:    
Bug Blocks: 538278    

Description Nicolas Mailhot 2010-09-17 18:51:11 UTC
On boot:

clamd.amavisd.service     loaded failed       failed                             LSB: The clamd server running for amavisd

# systemctl restart clamd.amavisd.service
Job failed, see system logs for details.
# setenforce permissive
# systemctl restart clamd.amavisd.service
#

There are no sealert to explain why clamd is being blocked. When clamd is down no mail is processed (the system runs postfix, amavis and dovecot) so this is the sole ready I have to disable selinux protection here. It worked fine in rawhide for months and was broken just in time for F14 alpha

clamav-0.96.2-1400.fc14.x86_64
clamav-data-0.96.2-1400.fc14.noarch
clamav-filesystem-0.96.2-1400.fc14.noarch
clamav-lib-0.96.2-1400.fc14.x86_64
clamav-scanner-0.96.2-1400.fc14.noarch
clamav-scanner-upstart-0.96.2-1400.fc14.noarch
clamav-server-0.96.2-1400.fc14.x86_64
clamav-update-0.96.2-1400.fc14.x86_64
selinux-policy-3.9.5-2.fc14.noarch
selinux-policy-targeted-3.9.5-2.fc14.noarch

Comment 1 Daniel Walsh 2010-09-22 21:18:58 UTC
Try
# semodule -DB
# systemctl restart clamd.amavisd.service

Turn back on the dontaudit rules by executing
#semodule -B

Comment 2 Nicolas Mailhot 2010-09-23 07:32:46 UTC
I seems to have been fixed by today's updates

clamav-0.96.3-1400.fc14.x86_64
clamav-scanner-upstart-0.96.3-1400.fc14.noarch
clamav-filesystem-0.96.3-1400.fc14.noarch
clamav-scanner-0.96.3-1400.fc14.noarch
clamav-data-0.96.3-1400.fc14.noarch
selinux-policy-3.9.5-3.fc14.noarch
clamav-update-0.96.3-1400.fc14.x86_64
clamav-lib-0.96.3-1400.fc14.x86_64
clamav-server-0.96.3-1400.fc14.x86_64
selinux-policy-targeted-3.9.5-3.fc14.noarch