Bug 723440 - SELinux is preventing /usr/bin/ssh-agent from read, open access on the fichier /usr/bin/ssh-agent.
Summary: SELinux is preventing /usr/bin/ssh-agent from read, open access on the fichie...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d5a0351d83d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-20 07:18 UTC by Sylvain Arth
Modified: 2011-10-07 14:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-07 14:53:42 UTC
Type: ---


Attachments (Terms of Use)

Description Sylvain Arth 2011-07-20 07:18:11 UTC
SELinux is preventing /usr/bin/ssh-agent from read, open access on the fichier /usr/bin/ssh-agent.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that ssh-agent should be allowed read open access on the ssh-agent file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep ssh-agent /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                root:staff_r:staff_gkeyringd_t:s0
Target Context                system_u:object_r:ssh_agent_exec_t:s0
Target Objects                /usr/bin/ssh-agent [ file ]
Source                        ssh-agent
Source Path                   /usr/bin/ssh-agent
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           openssh-clients-5.6p1-33.fc15.1
Target RPM Packages           openssh-clients-5.6p1-33.fc15.1
Policy RPM                    selinux-policy-3.9.16-34.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux esus.gwenved.dro 2.6.38.8-32.fc15.i686 #1
                              SMP Mon Jun 13 20:01:50 UTC 2011 i686 i686
Alert Count                   1
First Seen                    mer. 20 juil. 2011 09:08:57 CEST
Last Seen                     mer. 20 juil. 2011 09:08:57 CEST
Local ID                      30b9e690-fbd6-4e58-b0f7-0bfe7c7882b2

Raw Audit Messages
type=AVC msg=audit(1311145737.261:126): avc:  denied  { read open } for  pid=2515 comm="Xsession" name="ssh-agent" dev=dm-4 ino=150526 scontext=root:staff_r:staff_gkeyringd_t:s0 tcontext=system_u:object_r:ssh_agent_exec_t:s0 tclass=file


type=AVC msg=audit(1311145737.261:126): avc:  denied  { execute_no_trans } for  pid=2515 comm="Xsession" path="/usr/bin/ssh-agent" dev=dm-4 ino=150526 scontext=root:staff_r:staff_gkeyringd_t:s0 tcontext=system_u:object_r:ssh_agent_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1311145737.261:126): arch=i386 syscall=execve success=yes exit=0 a0=9a3b5b8 a1=9a3b068 a2=9a3c000 a3=9a3b068 items=0 ppid=2496 pid=2515 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=99 sgid=99 fsgid=99 tty=(none) ses=1 comm=ssh-agent exe=/usr/bin/ssh-agent subj=root:staff_r:staff_gkeyringd_t:s0 key=(null)

Hash: ssh-agent,staff_gkeyringd_t,ssh_agent_exec_t,file,read,open

audit2allow

#============= staff_gkeyringd_t ==============
allow staff_gkeyringd_t ssh_agent_exec_t:file { read open execute_no_trans };

audit2allow -R

#============= staff_gkeyringd_t ==============
allow staff_gkeyringd_t ssh_agent_exec_t:file { read open execute_no_trans };

Comment 1 Miroslav Grepl 2011-07-20 13:09:24 UTC
What were you doing when this happened?

Comment 2 Sylvain Arth 2011-07-20 13:34:29 UTC
(In reply to comment #1)
> What were you doing when this happened?
I can't figure actually
I only thought that too many selinux warnings (switched on permissive mode) were happening (most of them triggered by system's daemon or whatever), some looking like silly (bash reading .bas_history for instance) 
Hope this helps

Comment 3 Daniel Walsh 2011-07-20 21:55:34 UTC
This looks like the gkeyringd is trying to execute ssh-agent?  Has this changed?


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