Bug 581203 - SELinux is preventing /usr/bin/gpg-agent access to a leaked /bin/sh file descriptor.
Summary: SELinux is preventing /usr/bin/gpg-agent access to a leaked /bin/sh file desc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6f8cfd87a49...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-11 02:42 UTC by Carl G.
Modified: 2010-05-03 16:08 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-113.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-03 16:08:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl G. 2010-04-11 02:42:32 UTC
Résumé:

SELinux is preventing /usr/bin/gpg-agent access to a leaked /bin/sh file
descriptor.

Description détaillée:

SELinux denied access requested by the gpg-agent command. It looks like this is
either a leaked descriptor or gpg-agent output was redirected to a file it is
not allowed to access. Leaks usually can be ignored since SELinux is just
closing the leak and reporting the error. The application does not use the
descriptor, so it will run properly. If this is a redirection, you will not get
output in the /bin/sh. You should generate a bugzilla on selinux-policy, and it
will get routed to the appropriate package. You can safely ignore this avc.

Autoriser l'accès:

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

Informations complémentaires:

Contexte source               staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:bin_t:s0
Objets du contexte            /bin/sh [ lnk_file ]
source                        gpg-agent
Chemin de la source           /usr/bin/gpg-agent
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         gnupg2-2.0.13-1.fc12
Paquetages RPM cible          bash-4.0.35-3.fc12
Politique RPM                 selinux-policy-3.6.32-108.fc12
Selinux activé               True
Type de politique             targeted
Mode strict                   Enforcing
Nom du plugin                 leaks
Nom de l'hôte                (removed)
Plateforme                    Linux (removed)
                              2.6.32.10-90.fc12.x86_64 #1 SMP Tue Mar 23
                              09:47:08 UTC 2010 x86_64 x86_64
Compteur d'alertes            1
Première alerte              sam 10 avr 2010 22:39:44 EDT
Dernière alerte              sam 10 avr 2010 22:39:44 EDT
ID local                      129c11b2-ce4b-4c30-960a-b93540d87d59
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1270953584.538:834): avc:  denied  { read } for  pid=14203 comm="gpg-agent" name="sh" dev=dm-2 ino=135502 scontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=lnk_file

node=(removed) type=SYSCALL msg=audit(1270953584.538:834): arch=c000003e syscall=59 success=no exit=-13 a0=e513a0 a1=7fff9e3c2990 a2=7fff9e3c35c0 a3=3174e800a0 items=0 ppid=14200 pid=14203 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=13 comm="gpg-agent" exe="/usr/bin/gpg-agent" subj=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  leaks,gpg-agent,gpg_agent_t,bin_t,lnk_file,read
audit2allow suggests:

#============= gpg_agent_t ==============
allow gpg_agent_t bin_t:lnk_file read;

Comment 1 Daniel Walsh 2010-04-11 12:34:09 UTC
Miroslav add


corecmd_read_bin_symlinks(gpg_agent_t)

Comment 2 Miroslav Grepl 2010-04-13 12:15:14 UTC
Fixed in selinux-policy-3.6.32-111.fc12

Comment 3 Fedora Update System 2010-04-23 12:44:08 UTC
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 4 Fedora Update System 2010-04-27 02:22:45 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 5 Fedora Update System 2010-05-03 16:06:46 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 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.