Bug 1005057

Summary: SELinux prevents postfix/local from doing getserv and shmemserv
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.12.1-86.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:54:49 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:

Description Milos Malik 2013-09-06 07:09:36 UTC
Description of problem:


Version-Release number of selected component (if applicable):
nscd-2.17-21.el7.x86_64
postfix-2.10.1-2.el7.x86_64
postfix-perl-scripts-2.10.1-2.el7.x86_64
postfix-sysvinit-2.10.1-2.el7.noarch
selinux-policy-3.12.1-76.el7.noarch
selinux-policy-devel-3.12.1-76.el7.noarch
selinux-policy-doc-3.12.1-76.el7.noarch
selinux-policy-minimum-3.12.1-76.el7.noarch
selinux-policy-mls-3.12.1-76.el7.noarch
selinux-policy-targeted-3.12.1-76.el7.noarch

How reproducible:
everytime postfix/local wants to deliver a mail

Actual results:
----
type=USER_AVC msg=audit(09/06/2013 08:55:01.841:6390) : pid=16958 uid=nscd auid=unset ses=unset  subj=system_u:system_r:nscd_t:s0 msg='avc:  denied  { shmemserv } for  scontext=system_u:system_r:postfix_local_t:s0 tcontext=system_u:system_r:nscd_t:s0 tclass=nscd  exe=? sauid=nscd hostname=? addr=? terminal=?' 
----
type=USER_AVC msg=audit(09/06/2013 08:55:01.841:6391) : pid=16958 uid=nscd auid=unset ses=unset  subj=system_u:system_r:nscd_t:s0 msg='avc:  denied  { getserv } for  scontext=system_u:system_r:postfix_local_t:s0 tcontext=system_u:system_r:nscd_t:s0 tclass=nscd  exe=? sauid=nscd hostname=? addr=? terminal=?' 
----

Expected results:
 * no AVCs

Comment 1 Miroslav Grepl 2013-10-03 21:47:06 UTC
commit 1146f192a0f6bf740bda897ab9a44ae1e60c0478
Author: Miroslav Grepl <mgrepl>
Date:   Thu Oct 3 23:46:43 2013 +0200

    Fix nscd_shm_use()

Comment 3 Ludek Smid 2014-06-13 12:54:49 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.