Bug 709255 - SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'read' accesses on the sock_file /var/run/dovecot/auth-userdb.
Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'read' accesses o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:454966c907e...
: 709257 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-31 08:02 UTC by John Drinkwater
Modified: 2011-08-12 18:25 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.7-44.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-12 11:01:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.