Bug 624384

Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda "search" access on dovecot.
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Kastner <jkastner>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.0CC: antillon.maurizio, jrieden, mmalik
Target Milestone: rcKeywords: RHELNAK
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.7.19-40.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:36:23 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 Jiri Kastner 2010-08-16 09:36:27 UTC
Summary:

SELinux is preventing /usr/libexec/dovecot/dovecot-lda "search" access on
dovecot.

Detailed Description:

SELinux denied access requested by deliver. It is not expected that this access
is required by deliver and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:dovecot_deliver_t:s0
Target Context                system_u:object_r:dovecot_var_log_t:s0
Target Objects                dovecot [ dir ]
Source                        deliver
Source Path                   /usr/libexec/dovecot/dovecot-lda
Port                          <Unknown>
Host                          dhcp-27-126.brq.redhat.com
Source RPM Packages           dovecot-2.0-0.10.beta6.20100630.el6
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-39.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     dhcp-27-126.brq.redhat.com
Platform                      Linux dhcp-27-126.brq.redhat.com
                              2.6.32-63.el6.x86_64 #1 SMP Wed Aug 11 00:38:12
                              EDT 2010 x86_64 x86_64
Alert Count                   20
First Seen                    Mon 16 Aug 2010 11:33:39 AM CEST
Last Seen                     Mon 16 Aug 2010 11:35:07 AM CEST
Local ID                      c8b404b5-68d3-4e26-a4e2-8dc0149a987d
Line Numbers                  

Raw Audit Messages            

node=dhcp-27-126.brq.redhat.com type=AVC msg=audit(1281951307.767:66488): avc:  denied  { search } for  pid=5008 comm="deliver" name="dovecot" dev=sda7 ino=5113672 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:dovecot_var_log_t:s0 tclass=dir

node=dhcp-27-126.brq.redhat.com type=SYSCALL msg=audit(1281951307.767:66488): arch=c000003e syscall=2 success=no exit=-13 a0=22e7aa0 a1=441 a2=180 a3=10 items=0 ppid=4884 pid=5008 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)

Comment 1 RHEL Program Management 2010-08-16 09:38:24 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 2 Daniel Walsh 2010-08-16 11:31:17 UTC
Miroslav add

allow dovecot_deliver_t dovecot_var_log_t:dir search_dir_perms;

Comment 4 Miroslav Grepl 2010-08-18 15:34:57 UTC
Fixed in selinux-policy-3.7.19-40.el6.noarch.

Comment 7 releng-rhel@redhat.com 2010-11-10 21:36:23 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.