Bug 1519729 - SELinux is preventing imap from 'map' accesses on the file /home/.../dovecot.index.log.
Summary: SELinux is preventing imap from 'map' accesses on the file /home/.../dovecot....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0853d2f491ca0285f15b80f8691...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-01 10:35 UTC by Enrique Meléndez
Modified: 2018-01-02 16:49 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-283.19.fc27
Clone Of:
Environment:
Last Closed: 2018-01-02 16:49:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrique Meléndez 2017-12-01 10:35:57 UTC
Description of problem:
This problem happens whenever the imap server tries to access index files in a home directory
SELinux is preventing imap from 'map' accesses on the file /home/.../dovecot.index.log.

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

If you believe that imap should be allowed map access on the dovecot.index.log 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:
# ausearch -c 'imap' --raw | audit2allow -M my-imap
# semodule -X 300 -i my-imap.pp

Additional Information:
Source Context                system_u:system_r:dovecot_t:s0
Target Context                system_u:object_r:user_home_t:s0
Target Objects                /home/.../dovecot.index.log
                              [ file ]
Source                        imap
Source Path                   imap
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.13-300.fc27.x86_64 #1 SMP Wed
                              Nov 15 15:47:50 UTC 2017 x86_64 x86_64
Alert Count                   6568
First Seen                    2017-11-27 15:42:44 CET
Last Seen                     2017-12-01 11:30:34 CET
Local ID                      9165eb00-c893-47f3-a415-a513d462931d

Raw Audit Messages
type=AVC msg=audit(1512124234.879:71620): avc:  denied  { map } for  pid=18212 comm="imap" path="/.../dovecot.index.log" dev="dm-2" ino=14952745 scontext=system_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: imap,dovecot_t,user_home_t,file,map


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.13-300.fc27.x86_64
type:           libreport

Comment 1 Enrique Meléndez 2017-12-04 06:45:02 UTC
Description of problem:
This happens whenever the imap server tries to access files in th ehome directory. Always reproducib.e


Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.16-300.fc27.x86_64
type:           libreport

Comment 2 dan 2017-12-12 12:34:57 UTC
Here as well, many such messages when starting evolution after upgrade to FC27.

Comment 3 Fedora Update System 2017-12-13 08:29:15 UTC
selinux-policy-3.13.1-283.18.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 4 dan 2017-12-13 19:00:59 UTC
Installed from https://koji.fedoraproject.org/koji/buildinfo?buildID=1009180.  Resolves this bug for me.

Comment 5 Fedora Update System 2017-12-14 11:13:33 UTC
selinux-policy-3.13.1-283.18.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 6 Fedora Update System 2017-12-20 11:27:09 UTC
selinux-policy-3.13.1-283.19.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 7 Fedora Update System 2017-12-21 20:22:34 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8225c4e502

Comment 8 Fedora Update System 2018-01-02 16:49:27 UTC
selinux-policy-3.13.1-283.19.fc27 has been pushed to the Fedora 27 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.