Bug 652618 - SELinux is preventing /usr/bin/doveconf "read" access on /etc/dovecot/conf.d.
Summary: SELinux is preventing /usr/bin/doveconf "read" access on /etc/dovecot/co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:33de4a6bae3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-12 11:06 UTC by Jiri Kastner
Modified: 2010-11-22 13:18 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.7-12.fc14
Clone Of:
Environment:
Last Closed: 2010-11-21 21:59:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jiri Kastner 2010-11-12 11:06:20 UTC
Summary:

SELinux is preventing /usr/bin/doveconf "read" access on /etc/dovecot/conf.d.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by doveconf. It is not expected that this access
is required by doveconf and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:dovecot_deliver_t:s0
Target Context                system_u:object_r:dovecot_etc_t:s0
Target Objects                /etc/dovecot/conf.d [ dir ]
Source                        doveconf
Source Path                   /usr/bin/doveconf
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dovecot-2.0.1-1.fc14
Target RPM Packages           dovecot-2.0.1-1.fc14
Policy RPM                    selinux-policy-3.9.7-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 12 Nov 2010 12:05:52 PM CET
Last Seen                     Fri 12 Nov 2010 12:05:52 PM CET
Local ID                      f0162e1d-476e-4fef-8ea1-864d281fe073
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289559952.977:65712): avc:  denied  { read } for  pid=3751 comm="doveconf" name="conf.d" dev=sda7 ino=395861 scontext=system_u:system_r:dovecot_deliver_t:s0 tcontext=system_u:object_r:dovecot_etc_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1289559952.977:65712): arch=c000003e syscall=2 success=yes exit=7 a0=7fff249a2660 a1=90800 a2=260cb7c a3=7fff249a2670 items=0 ppid=3750 pid=3751 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm="doveconf" exe="/usr/bin/doveconf" subj=system_u:system_r:dovecot_deliver_t:s0 key=(null)



Hash String generated from  catchall,doveconf,dovecot_deliver_t,dovecot_etc_t,dir,read
audit2allow suggests:

#============= dovecot_deliver_t ==============
allow dovecot_deliver_t dovecot_etc_t:dir read;

Comment 1 Jiri Kastner 2010-11-12 11:07:41 UTC
i noticed this after running preupgrade

Comment 2 Daniel Walsh 2010-11-12 14:33:59 UTC
Looks like we need

allow dovecot_deliver_t dovecot_etc_t:dir list_dir_perms;

Comment 3 Miroslav Grepl 2010-11-15 09:53:19 UTC
Looks so. Fixed in selinux-policy-3.9.7-13.fc14

Comment 4 Fedora Update System 2010-11-19 13:21:21 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 5 Fedora Update System 2010-11-19 22:39:36 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 6 Fedora Update System 2010-11-21 21:57:55 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 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.