Bug 827568

Summary: selinux is preventing dovecot-imap from accessing Maildir
Product: [Fedora] Fedora Reporter: Roger Noble <rgnoble>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-17 00:01:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
selinux dovecot imap alert details
none
selinux dovecot imap alert details none

Description Roger Noble 2012-06-01 19:05:16 UTC
Created attachment 588563 [details]
selinux dovecot imap alert details

Description of problem:

selinux is preventing dovecot-imap from accessing Maildir.


Version-Release number of selected component (if applicable):

3.10.0-125


How reproducible:

Always.


Steps to Reproduce:
1. Start dovecot imap
2. Wait
3.
  
Actual results:

selinux security alerts


Expected results:

No alerts


Additional info:

selinux is preventing various accesses: getattr, open, etc etc

I've changed to permissive mode to allow it all to work.

Attached are some example details.

Comment 1 Miroslav Grepl 2012-06-04 13:48:19 UTC
Fixed in selinux-policy-3.10.0-129.fc17

Comment 2 Roger Noble 2012-06-04 15:45:19 UTC
Thanks.

Comment 3 Fedora Update System 2012-06-11 20:58:33 UTC
selinux-policy-3.10.0-130.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-130.fc17

Comment 4 Roger Noble 2012-06-11 22:18:26 UTC
3.10.0-130 is OK as it goes, but I am now getting selinux failures for dovecot-imap on dovecot-uidlist.lock (unlink, add_name, remove_name, create), dovecot.index.log (write), and dovecot-uidlist.tmp (rename). Attempting to install a policy for these gives the error:

libsepol.print_missing_requirements: dovecot's global requirements were not met: type/attribute dovecot_t (No such file or directory).

Comment 5 Miroslav Grepl 2012-06-12 11:47:19 UTC
Could you add AVC msgs?

Comment 6 Roger Noble 2012-06-12 12:00:52 UTC
Created attachment 591175 [details]
selinux dovecot imap alert details

Attached as requested.

Comment 7 Daniel Walsh 2012-06-13 01:07:17 UTC
9e1b6760c12b739877b0a6ca70eb77290132a66c should fix this.

Comment 8 Miroslav Grepl 2012-06-15 11:50:11 UTC
Fixed in selinux-policy-3.10.0-131.fc17

Comment 9 Fedora Update System 2012-06-15 23:56:20 UTC
Package selinux-policy-3.10.0-130.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-130.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9520/selinux-policy-3.10.0-130.fc17
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-06-17 00:01:11 UTC
selinux-policy-3.10.0-130.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.