Bug 709255

Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'read' accesses on the sock_file /var/run/dovecot/auth-userdb.
Product: [Fedora] Fedora Reporter: John Drinkwater <john>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:454966c907ebb413085d3544293a24dc621f04ebd5a1a0af762f87041f22b996
Fixed In Version: selinux-policy-3.9.7-44.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-12 11:01:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Drinkwater 2011-05-31 08:02:06 UTC
SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'read' accesses on the sock_file /var/run/dovecot/auth-userdb.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that dovecot-lda should be allowed read access on the auth-userdb sock_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep dovecot-lda /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:dovecot_deliver_t:s0
Target Context                unconfined_u:object_r:dovecot_var_run_t:s0
Target Objects                /var/run/dovecot/auth-userdb [ sock_file ]
Source                        dovecot-lda
Source Path                   /usr/libexec/dovecot/dovecot-lda
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dovecot-2.0.12-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686
                              #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   17
First Seen                    Tue 31 May 2011 08:26:37 BST
Last Seen                     Tue 31 May 2011 08:56:46 BST
Local ID                      bb471ded-c7a3-4fb2-a62c-dea2f794200b

Raw Audit Messages
type=AVC msg=audit(1306828606.646:14162): avc:  denied  { read } for  pid=12777 comm="dovecot-lda" name="auth-userdb" dev=sda1 ino=39880 scontext=unconfined_u:system_r:dovecot_deliver_t:s0 tcontext=unconfined_u:object_r:dovecot_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1306828606.646:14162): arch=i386 syscall=access success=no exit=EACCES a0=8c2b6f0 a1=4 a2=71d4e4 a3=8c2b6f0 items=0 ppid=12768 pid=12777 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=2029 comm=dovecot-lda exe=/usr/libexec/dovecot/dovecot-lda subj=unconfined_u:system_r:dovecot_deliver_t:s0 key=(null)

Hash: dovecot-lda,dovecot_deliver_t,dovecot_var_run_t,sock_file,read

audit2allow

#============= dovecot_deliver_t ==============
allow dovecot_deliver_t dovecot_var_run_t:sock_file read;

audit2allow -R

#============= dovecot_deliver_t ==============
allow dovecot_deliver_t dovecot_var_run_t:sock_file read;

Comment 1 Dominick Grift 2011-05-31 09:17:00 UTC
dovecot_deliver_t reads dovecot_var_run_t sock_files:

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=3985ee8bbd4ef629d9b39d82e372419ba357f483

Comment 2 Miroslav Grepl 2011-05-31 09:59:31 UTC
*** Bug 709257 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-05-31 10:02:42 UTC
Fixed in selinux-policy-3.9.7-43.fc14

Comment 4 Fedora Update System 2011-08-04 13:58:08 UTC
selinux-policy-3.9.7-44.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14

Comment 5 Fedora Update System 2011-08-05 03:53:19 UTC
Package selinux-policy-3.9.7-44.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-44.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-08-12 11:00:15 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-08-12 18:24:45 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.