diff options
author | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:10:13 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-02-21 12:10:31 +0000 |
commit | ad09303388f0172ab6e028aaf27d87cf873d123d (patch) | |
tree | bf39b78ef803306936c31791177f1c35804e6b59 /ssh-agent.1 | |
parent | a14ddfc3f607b0bf29046bfb4b26a6d827fa58c7 (diff) |
Document consequences of ssh-agent being setgid in ssh-agent(1)
Bug-Debian: http://bugs.debian.org/711623
Forwarded: no
Last-Update: 2020-02-21
Patch-Name: ssh-agent-setgid.patch
Diffstat (limited to 'ssh-agent.1')
-rw-r--r-- | ssh-agent.1 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ssh-agent.1 b/ssh-agent.1 index fff0db6bc..99e4f6d2e 100644 --- a/ssh-agent.1 +++ b/ssh-agent.1 | |||
@@ -201,6 +201,21 @@ socket and stores its pathname in this variable. | |||
201 | It is accessible only to the current user, | 201 | It is accessible only to the current user, |
202 | but is easily abused by root or another instance of the same user. | 202 | but is easily abused by root or another instance of the same user. |
203 | .El | 203 | .El |
204 | .Pp | ||
205 | In Debian, | ||
206 | .Nm | ||
207 | is installed with the set-group-id bit set, to prevent | ||
208 | .Xr ptrace 2 | ||
209 | attacks retrieving private key material. | ||
210 | This has the side-effect of causing the run-time linker to remove certain | ||
211 | environment variables which might have security implications for set-id | ||
212 | programs, including | ||
213 | .Ev LD_PRELOAD , | ||
214 | .Ev LD_LIBRARY_PATH , | ||
215 | and | ||
216 | .Ev TMPDIR . | ||
217 | If you need to set any of these environment variables, you will need to do | ||
218 | so in the program executed by ssh-agent. | ||
204 | .Sh FILES | 219 | .Sh FILES |
205 | .Bl -tag -width Ds | 220 | .Bl -tag -width Ds |
206 | .It Pa $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> | 221 | .It Pa $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> |