Bug 991819

Summary: SELinux is preventing /usr/sbin/dovecot from 'read' accesses on the file unix.
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:891b87165b2192214306feec31c9b8e15f98460647c4a876060c1876f9d0bd1b
Fixed In Version: selinux-policy-3.12.1-71.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-22 00:52:37 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 Ralf Corsepius 2013-08-04 15:55:19 UTC
Description of problem:
This alert happens when retrieving/downloading mail via thunderbird.
SELinux is preventing /usr/sbin/dovecot from 'read' accesses on the file unix.

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

If you believe that dovecot should be allowed read access on the unix 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 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dovecot_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                unix [ file ]
Source                        dovecot
Source Path                   /usr/sbin/dovecot
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dovecot-2.2.4-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-66.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.3-300.fc19.x86_64 #1 SMP Fri
                              Jul 26 00:00:58 UTC 2013 x86_64 x86_64
Alert Count                   85
First Seen                    2013-07-25 03:45:25 CEST
Last Seen                     2013-08-04 14:25:09 CEST
Local ID                      21940f67-b04c-46d2-9b6b-05f313c51167

Raw Audit Messages
type=AVC msg=audit(1375619109.794:108): avc:  denied  { read } for  pid=1474 comm="dovecot" name="unix" dev="proc" ino=4026532002 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1375619109.794:108): arch=x86_64 syscall=access success=no exit=EACCES a0=7fff73dbfeb0 a1=4 a2=7fff73dbfebe a3=a items=0 ppid=668 pid=1474 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=dovecot exe=/usr/sbin/dovecot subj=system_u:system_r:dovecot_t:s0 key=(null)

Hash: dovecot,dovecot_t,proc_net_t,file,read

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.10.3-300.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-08-05 17:00:59 UTC
d2b7a5a63a749c7e7d465e4d5ad469096f94f805 fixes this in git.

Comment 2 Ralf Corsepius 2013-08-06 04:59:12 UTC
Any *rpm to test?

Comment 3 Miroslav Grepl 2013-08-07 14:58:09 UTC
Back ported.

Comment 4 Fedora Update System 2013-08-20 08:25:40 UTC
selinux-policy-3.12.1-71.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-71.fc19

Comment 5 Fedora Update System 2013-08-21 00:14:51 UTC
Package selinux-policy-3.12.1-71.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-71.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15088/selinux-policy-3.12.1-71.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-08-22 00:52:37 UTC
selinux-policy-3.12.1-71.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.