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)
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
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
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).
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
Sorry, retested again, as it was strange... now it works, with the same labelling as above. Will give positive Karma for this.
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).
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).
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.