Bug 622281 - SELinux empêche l'accès en "read" à /usr/bin/doveconf on /etc/dovecot/conf
Summary: SELinux empêche l'accès en "read" à /usr/bin/doveconf on /etc/dovecot/conf
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: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9b9e2a33ffc...
Depends On:
Blocks: F14Target
TreeView+ depends on / blocked
 
Reported: 2010-08-08 15:38 UTC by Nicolas Mailhot
Modified: 2010-08-24 01:49 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.8.8-14.fc14
Clone Of:
Environment:
Last Closed: 2010-08-24 01:49:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2010-08-08 15:38:36 UTC
Résumé:

SELinux empêche l'accès en "read" à /usr/bin/doveconf on /etc/dovecot/conf

Description détaillée:

SELinux a refusé l'accès demandé par doveconf. Il n'est pas prévu que cet
accès soit requis par doveconf et cet accès peut signaler une tentative
d'intrusion. Il est également possible que cette version ou cette configuration
spécifique de l'application provoque cette demande d'accès supplémenta

Autoriser l'accès:

Vous pouvez créer un module de stratégie locale pour autoriser cet accès -
lisez la FAQ (http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Merci de
remplir un rapport de bogue.

Informations complémentaires:

Contexte source               unconfined_u:system_r:dovecot_t:s0
Contexte cible                system_u:object_r:dovecot_etc_t:s0
Objets du contexte            /etc/dovecot/conf.d [ dir ]
source                        doveconf
Chemin de la source           /usr/bin/doveconf
Port                          <Inconnu>
Hôte                         (supprimé)
Paquetages RPM source         dovecot-2.0-0.20.rc4.fc14
Paquetages RPM cible          dovecot-2.0-0.20.rc4.fc14
Politique RPM                 selinux-policy-3.8.8-11.fc14
Selinux activé               True
Type de politique             targeted
Mode strict                   Enforcing
Nom du plugin                 catchall
Nom de l'hôte                (supprimé)
Plateforme                    Linux (supprimé) 2.6.35.1-4.rc1.fc14.x86_64 #1 SMP
                              Sat Aug 7 17:02:35 UTC 2010 x86_64 x86_64
Compteur d'alertes            1
Première alerte              dim. 08 août 2010 17:37:40 CEST
Dernière alerte              dim. 08 août 2010 17:37:40 CEST
ID local                      1efbd56d-503b-479e-aa01-bfd4e607b69e
Numéros des lignes           

Messages d'audit bruts        

node=(supprimé) type=AVC msg=audit(1281281860.212:123): avc:  denied  { read } for  pid=3717 comm="doveconf" name="conf.d" dev=dm-1 ino=2113318 scontext=unconfined_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:dovecot_etc_t:s0 tclass=dir

node=(supprimé) type=SYSCALL msg=audit(1281281860.212:123): arch=c000003e syscall=2 success=no exit=-13 a0=7fffc7001d10 a1=90800 a2=1b0e9f4 a3=0 items=0 ppid=3716 pid=3717 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=6 comm="doveconf" exe="/usr/bin/doveconf" subj=unconfined_u:system_r:dovecot_t:s0 key=(null)



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

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

Comment 1 Nicolas Mailhot 2010-08-08 15:53:49 UTC
dovecot config has been split in many files upstream...

Comment 2 Nicolas Mailhot 2010-08-11 17:47:55 UTC
Still there with
selinux-policy-targeted-3.8.8-12.fc14.noarch
selinux-policy-3.8.8-12.fc14.noarch

Comment 3 Nicolas Mailhot 2010-08-13 06:05:29 UTC
Still there with
selinux-policy-targeted-3.8.8-13.fc14.noarch
selinux-policy-3.8.8-13.fc14.noarch

That makes it impossible to use dovecot on a selinux system, as it needs to read its configuration every time someone connects to work

Comment 4 Daniel Walsh 2010-08-13 16:10:48 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.8.8-14.fc14

Comment 5 Fedora Update System 2010-08-13 20:29:14 UTC
selinux-policy-3.8.8-14.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/selinux-policy-3.8.8-14.fc14

Comment 6 Fedora Update System 2010-08-24 01:48:35 UTC
selinux-policy-3.8.8-14.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.