Bug 1514451

Summary: clamav-milter doesn't start
Product: [Fedora] Fedora Reporter: Morten Stevens <ms>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.17.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 23:53:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Morten Stevens 2017-11-17 13:21:58 UTC
Description of problem:

clamav-milter doesn't start in Fedora 27 and rawhide because of some selinux related issues.

Version-Release number of selected component (if applicable):

selinux-policy-3.13.1-283.14.fc27.noarch
clamav-milter-0.99.2-12.fc27.x86_64

How reproducible:

Steps to Reproduce:
1. dnf install clamav-milter
2. systemctl start clamav-milter

Actual results:

type=AVC msg=audit(1510924262.686:11119): avc:  denied  { nnp_transition } for  pid=19990 comm="(v-milter)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:antivirus_t:s0 tclass=process2 permissive=0
type=SELINUX_ERR msg=audit(1510924262.686:11120): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:antivirus_t:s0
type=AVC msg=audit(1510924262.687:11121): avc:  denied  { map } for  pid=19990 comm="clamav-milter" path="/usr/sbin/clamav-milter" dev="dm-0" ino=6030926 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1510924262.897:11127): avc:  denied  { nnp_transition } for  pid=19993 comm="(v-milter)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:antivirus_t:s0 tclass=process2 permissive=0
type=SELINUX_ERR msg=audit(1510924262.897:11128): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:antivirus_t:s0
type=AVC msg=audit(1510924262.897:11129): avc:  denied  { map } for  pid=19993 comm="clamav-milter" path="/usr/sbin/clamav-milter" dev="dm-0" ino=6030926 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1510924263.143:11135): avc:  denied  { nnp_transition } for  pid=19998 comm="(v-milter)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:antivirus_t:s0 tclass=process2 permissive=0
type=SELINUX_ERR msg=audit(1510924263.143:11136): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:antivirus_t:s0
type=AVC msg=audit(1510924263.143:11137): avc:  denied  { map } for  pid=19998 comm="clamav-milter" path="/usr/sbin/clamav-milter" dev="dm-0" ino=6030926 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1510924263.391:11143): avc:  denied  { nnp_transition } for  pid=20002 comm="(v-milter)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:antivirus_t:s0 tclass=process2 permissive=0
type=SELINUX_ERR msg=audit(1510924263.391:11144): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:antivirus_t:s0
type=AVC msg=audit(1510924263.392:11145): avc:  denied  { map } for  pid=20002 comm="clamav-milter" path="/usr/sbin/clamav-milter" dev="dm-0" ino=6030926 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=0
type=AVC msg=audit(1510924263.640:11151): avc:  denied  { nnp_transition } for  pid=20005 comm="(v-milter)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:antivirus_t:s0 tclass=process2 permissive=0
type=SELINUX_ERR msg=audit(1510924263.640:11152): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:antivirus_t:s0
type=AVC msg=audit(1510924263.640:11153): avc:  denied  { map } for  pid=20005 comm="clamav-milter" path="/usr/sbin/clamav-milter" dev="dm-0" ino=6030926 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=0

Expected results:

no avc denied error

Comment 1 Fedora Update System 2017-11-22 08:55:15 UTC
selinux-policy-3.13.1-283.17.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d05b1a2ab9

Comment 2 Morten Stevens 2017-11-22 13:29:51 UTC
Lukas,

Thank you. It's working fine with the latest selinux-policy-3.13.1-283.17.fc27 update.

Comment 3 Fedora Update System 2017-11-22 21:41:23 UTC
selinux-policy-3.13.1-283.17.fc27 has been pushed to the Fedora 27 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-2017-d05b1a2ab9

Comment 4 Fedora Update System 2017-11-28 23:53:48 UTC
selinux-policy-3.13.1-283.17.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.