Bug 1514868

Summary: selinux prevents newaliases from accessing postfix_etc_t directories
Product: [Fedora] Fedora Reporter: Scott Shambarger <scott-fedora>
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: awilliam, dwalsh, igeorgex, 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:09 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 Scott Shambarger 2017-11-19 02:02:16 UTC
Description of problem:
type=AVC msg=audit(11/18/2017 17:50:22.190:182) : avc:  denied  { read } for  pid=1330 comm=newaliases name=dynamicmaps.cf.d dev="dm-0" ino=2099156 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:postfix_etc_t:s0 tclass=dir permissive=0 

        Was caused by:
                Missing type enforcement (TE) allow rule.

                You can use audit2allow to generate a loadable module to allow this access.

Caused when starting postfix (which updates the alias.db file):

aliasesdb[7045]: newaliases: warning: /etc/postfix/dynamicmaps.cf.d: directory open failed: Permission denied

Adding the following policy allowed access:

allow sendmail_t postfix_etc_t:dir read;

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

selinux-policy-3.13.1-283.14.fc27.noarch
postfix-3.2.4-1.fc27.x86_64

Comment 1 Fedora Update System 2017-11-22 08:54:07 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 Adam Williamson 2017-11-22 20:17:40 UTC
*** Bug 1516523 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2017-11-22 21:40:45 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 Scott Shambarger 2017-11-23 00:51:35 UTC
Appears fixed in latest build, adding karma!

Comment 5 Fedora Update System 2017-11-28 23:53:09 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.