Bug 524540 - setroubleshoot: SELinux is preventing /usr/bin/gpg "write" access on /etc/mail/spamassassin/sa-update-keys.
Summary: setroubleshoot: SELinux is preventing /usr/bin/gpg "write" access on /etc/mai...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:6fec0dc9542...
Depends On:
TreeView+ depends on / blocked
Reported: 2009-09-21 06:00 UTC by Nicolas Mailhot
Modified: 2009-09-21 13:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-21 13:19:22 UTC

Attachments (Terms of Use)

Description Nicolas Mailhot 2009-09-21 06:00:15 UTC
The following was filed automatically by setroubleshoot:


SELinux is preventing /usr/bin/gpg "write" access on

Description détaillée:

SELinux denied access requested by gpg. It is not expected that this access is
required by gpg 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.

Autoriser l'accès:

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

Informations complémentaires:

Contexte source               system_u:system_r:gpg_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:etc_mail_t:s0
Objets du contexte            /etc/mail/spamassassin/sa-update-keys [ dir ]
source                        gpg
Chemin de la source           /usr/bin/gpg
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         gnupg-1.4.10-1.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.32-7.fc12
Selinux activé               True
Type de politique             targeted
MLS activé                   True
Mode strict                   Enforcing
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    Linux (removed) 2.6.31-33.fc12.x86_64 #1 SMP Thu
                              Sep 17 15:40:43 EDT 2009 x86_64 x86_64
Compteur d'alertes            1
Première alerte              lun. 21 sept. 2009 05:12:09 CEST
Dernière alerte              lun. 21 sept. 2009 05:12:09 CEST
ID local                      e7398662-36b8-44e3-8587-2beb2979742a
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1253502729.150:514): avc:  denied  { write } for  pid=5038 comm="gpg" name="sa-update-keys" dev=dm-3 ino=286761 scontext=system_u:system_r:gpg_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_mail_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1253502729.150:514): arch=c000003e syscall=2 success=no exit=-13 a0=7fa4f6b85530 a1=c1 a2=1a4 a3=fffffff7 items=0 ppid=5037 pid=5038 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=22 comm="gpg" exe="/usr/bin/gpg" subj=system_u:system_r:gpg_t:s0-s0:c0.c1023 key=(null)

audit2allow suggests:

#============= gpg_t ==============
allow gpg_t etc_mail_t:dir write;

Comment 1 Daniel Walsh 2009-09-21 13:19:22 UTC
Fixed in selinux-policy-3.6.32-8.fc12.noarch

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