Bug 879666 - Selinux Filters Dovecot/Pigeonhole Filters
Summary: Selinux Filters Dovecot/Pigeonhole Filters
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-23 15:59 UTC by Grosswiler Roger
Modified: 2012-12-07 04:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-07 04:32:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Grosswiler Roger 2012-11-23 15:59:04 UTC
Description of problem:
Pigeonhole should filter Mails for Dovecot (Sieve). Filtering works, but filtersets by users are blocked by selinux


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.11.1-50.fc18.noarch

How reproducible:
Always


Steps to Reproduce:
1. Send Mail according to filtered Item in Dovecot/Pigeonhole
2. Expect Mail in a defined Folder e.g. Spam
3. Get Mail, unfiltered in usual Inbox instead of folder
  
Actual results:
Filtersets not readable


Expected results:
Filtersets readable


Additional info:

AVC denials according to audit.log:

type=AVC msg=audit(1353685935.171:865): avc:  denied  { getattr } for  pid=9781 comm="deliver" path="/data/Maildir/roger/sieve/.dovecot.sieve" dev="vdb1" ino=263102 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=lnk_file
type=SYSCALL msg=audit(1353685935.171:865): arch=c000003e syscall=6 success=no exit=-13 a0=194d368 a1=7fff2e192de0 a2=7fff2e192de0 a3=8 items=0 ppid=9780 pid=9781 auid=4294967295 uid=1002 gid=1002 euid=1002 suid=1002 fsuid=1002 egid=1002 sgid=1002 fsgid=1002 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)
type=AVC msg=audit(1353685935.174:866): avc:  denied  { read } for  pid=9781 comm="deliver" name=".dovecot.sieve" dev="vdb1" ino=263102 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=lnk_file
type=SYSCALL msg=audit(1353685935.174:866): arch=c000003e syscall=21 success=no exit=-13 a0=194d368 a1=4 a2=194d540 a3=5 items=0 ppid=9780 pid=9781 auid=4294967295 uid=1002 gid=1002 euid=1002 suid=1002 fsuid=1002 egid=1002 sgid=1002 fsgid=1002 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)
type=AVC msg=audit(1353685935.175:867): avc:  denied  { read } for  pid=9781 comm="deliver" name=".dovecot.sieve" dev="vdb1" ino=263102 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:mail_home_rw_t:s0 tclass=lnk_file
type=SYSCALL msg=audit(1353685935.175:867): arch=c000003e syscall=4 success=no exit=-13 a0=194d368 a1=7fff2e192a80 a2=7fff2e192a80 a3=28 items=0 ppid=9780 pid=9781 auid=4294967295 uid=1002 gid=1002 euid=1002 suid=1002 fsuid=1002 egid=1002 sgid=1002 fsgid=1002 tty=(none) ses=4294967295 comm="deliver" exe="/usr/libexec/dovecot/dovecot-lda" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)

Comment 1 Miroslav Grepl 2012-11-23 19:13:43 UTC
Added.

commit f1e9818d83b849b504a732270fb227332d3ea5df
Author: Miroslav Grepl <mgrepl>
Date:   Fri Nov 23 20:11:48 2012 +0100

    Allow mailserver_delivery to manage mail_home_rw_t lnk_files

Comment 2 Fedora Update System 2012-11-28 20:59:03 UTC
selinux-policy-3.11.1-57.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-57.fc18

Comment 3 Fedora Update System 2012-11-30 06:37:35 UTC
Package selinux-policy-3.11.1-57.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-57.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19374/selinux-policy-3.11.1-57.fc18
then log in and leave karma (feedback).

Comment 4 Grosswiler Roger 2012-12-01 21:38:53 UTC
Doesn't work for me, is for the sieve-files a special labelling necessary? 

Now i have it all on system_u:object_r:mail_home_rw_t:s0 which works fine with deliver, but audit. log tells me now to use system_u:system_r:dovecot_deliver_t:s0

Comment 5 Grosswiler Roger 2012-12-01 21:51:27 UTC
Sorry, retested again, as it was strange...

now it works, with the same labelling as above.

Will give positive Karma for this.

Comment 6 Fedora Update System 2012-12-02 19:31:33 UTC
Package selinux-policy-3.11.1-59.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-59.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19374/selinux-policy-3.11.1-59.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-06 20:14:14 UTC
Package selinux-policy-3.11.1-60.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-60.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19374/selinux-policy-3.11.1-60.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-12-07 04:32:43 UTC
selinux-policy-3.11.1-60.fc18 has been pushed to the Fedora 18 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.