Bug 713571 - SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'use' accesses on the fd fd.
Summary: SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'use' accesses on...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:99d15c2eea1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-15 19:32 UTC by Nicolas Mailhot
Modified: 2012-02-10 08:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-10 08:48:39 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2011-06-15 19:32:04 UTC
SELinux is preventing /usr/libexec/dovecot/dovecot-lda from 'use' accesses on the fd fd.

*****  Plugin catchall_boolean (80.5 confidence) suggests  *******************

If you want to allow all domains to use other domains file descriptors
Then you must tell SELinux about this by enabling the 'allow_domain_fd_use' boolean.
Do
setsebool -P allow_domain_fd_use 1

*****  Plugin leaks (10.5 confidence) suggests  ******************************

If you want to ignore dovecot-lda trying to use access the fd fd, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/libexec/dovecot/dovecot-lda /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (10.5 confidence) suggests  ***************************

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

Additional Information:
Source Context                system_u:system_r:dovecot_deliver_t:s0
Target Context                system_u:system_r:postfix_master_t:s0
Target Objects                fd [ fd ]
Source                        deliver
Source Path                   /usr/libexec/dovecot/dovecot-lda
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           dovecot-2.0.13-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-28.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc3.git0.3.fc16.x86_64 #1
                              SMP Tue Jun 14 17:13:27 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    mer. 15 juin 2011 21:30:10 CEST
Last Seen                     mer. 15 juin 2011 21:30:20 CEST
Local ID                      eb7412d5-8a29-49ec-9dc9-1618748e2790

Raw Audit Messages
type=AVC msg=audit(1308166220.592:150): avc:  denied  { use } for  pid=3699 comm="deliver" path="pipe:[18652]" dev=pipefs ino=18652 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:system_r:postfix_master_t:s0 tclass=fd


type=SYSCALL msg=audit(1308166220.592:150): arch=x86_64 syscall=execve success=yes exit=0 a0=7f1edb5f2b20 a1=7f1edb5f2ab0 a2=7f1edb5f2910 a3=7fffd8f20600 items=0 ppid=3647 pid=3699 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=deliver exe=/usr/libexec/dovecot/dovecot-lda subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)

Hash: deliver,dovecot_deliver_t,postfix_master_t,fd,use

audit2allow

#============= dovecot_deliver_t ==============
#!!!! This avc can be allowed using the boolean 'allow_domain_fd_use'

allow dovecot_deliver_t postfix_master_t:fd use;

audit2allow -R

#============= dovecot_deliver_t ==============
#!!!! This avc can be allowed using the boolean 'allow_domain_fd_use'

allow dovecot_deliver_t postfix_master_t:fd use;

Comment 1 Dominick Grift 2011-06-15 19:47:17 UTC
I think these are the legit ones where path="pipe"?

added this to master. If i am wrong please let me know and i will revert:

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=2265b98c1681f49bd1426bd9221ed1346d971d15

Comment 2 Daniel Walsh 2011-06-15 20:19:04 UTC
Fixed in selinux-policy-3.9.16-29.fc16


Note You need to log in before you can comment on or make changes to this bug.