The following was filed automatically by setroubleshoot: Résumé: SELinux is preventing /usr/bin/gpg "ipc_lock" access. Description détaillée: [gpg has a permissive type (system_cronjob_t). This access was not denied.] 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 report. Informations complémentaires: Contexte source system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 Contexte cible system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 Objets du contexte None [ capability ] 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.31-3.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-2.fc12.x86_64 #1 SMP Thu Sep 10 00:25:40 EDT 2009 x86_64 x86_64 Compteur d'alertes 1 Première alerte dim. 13 sept. 2009 05:36:47 CEST Dernière alerte dim. 13 sept. 2009 05:36:47 CEST ID local dd57837b-8344-4b5d-a1ce-3f2a07f40bf3 Numéros des lignes Messages d'audit bruts node=(removed) type=AVC msg=audit(1252813007.617:853): avc: denied { ipc_lock } for pid=5957 comm="gpg" capability=14 scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tclass=capability node=(removed) type=SYSCALL msg=audit(1252813007.617:853): arch=c000003e syscall=149 success=yes exit=0 a0=7fbc8ab6c000 a1=8000 a2=3 a3=22 items=0 ppid=5945 pid=5957 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=21 comm="gpg" exe="/usr/bin/gpg" subj=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 key=(null) audit2allow suggests: #============= system_cronjob_t ============== allow system_cronjob_t self:capability ipc_lock;
triggered by a monthly /usr/bin/gpg --refresh-keys --keyserver pgpkeys.mit.edu in the user crontab
(there are other avcs related to this command, I won't report them just test this)
Fixed in selinux-policy-3.6.31-4.fc12.noarch Adding cron_system_entry(gpg_t, gpg_exec_t) Which should transition system_cronjob_t to gpg, might cause additional avc messages though.