File: ssh-agent-setgid.patch

package info (click to toggle)
openssh 1%3A10.2p1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,564 kB
  • sloc: ansic: 134,030; sh: 15,833; makefile: 1,726; cpp: 773; awk: 341; pascal: 84; csh: 1
file content (40 lines) | stat: -rw-r--r-- 1,249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From ba86d5eae8b1aaefddcbdbe867b5b613c0821788 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 9 Feb 2014 16:10:13 +0000
Subject: 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
---
 ssh-agent.1 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ssh-agent.1 b/ssh-agent.1
index f77a6cdd5..3498be25e 100644
--- a/ssh-agent.1
+++ b/ssh-agent.1
@@ -306,6 +306,21 @@ socket and stores its pathname in this variable.
 It is accessible only to the current user,
 but is easily abused by root or another instance of the same user.
 .El
+.Pp
+In Debian,
+.Nm
+is installed with the set-group-id bit set, to prevent
+.Xr ptrace 2
+attacks retrieving private key material.
+This has the side-effect of causing the run-time linker to remove certain
+environment variables which might have security implications for set-id
+programs, including
+.Ev LD_PRELOAD ,
+.Ev LD_LIBRARY_PATH ,
+and
+.Ev TMPDIR .
+If you need to set any of these environment variables, you will need to do
+so in the program executed by ssh-agent.
 .Sh FILES
 .Bl -tag -width Ds
 .It Pa $HOME/.ssh/agent/s.*