summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authordoug@openbsd.org <doug@openbsd.org>2015-12-11 17:41:37 +0000
committerDamien Miller <djm@mindrot.org>2015-12-18 14:50:49 +1100
commit43849a47c5f8687699eafbcb5604f6b9c395179f (patch)
tree6fcea4d7a9754131d038bb9f510780a2b08dc188 /ssh-agent.c
parent52d7078421844b2f88329f5be3de370b0a938636 (diff)
upstream commit
Add "id" to ssh-agent pledge for subprocess support. Found the hard way by Jan Johansson when using ssh-agent with X. Also, rearranged proc/exec and retval to match other pledge calls in the tree. ok djm@ Upstream-ID: 914255f6850e5e7fa830a2de6c38605333b584db
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 709c5b703..2048a11c4 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.210 2015/12/11 02:29:03 dtucker Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.211 2015/12/11 17:41:37 doug Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1415,7 +1415,7 @@ skip:
1415 signal(SIGTERM, cleanup_handler); 1415 signal(SIGTERM, cleanup_handler);
1416 nalloc = 0; 1416 nalloc = 0;
1417 1417
1418 if (pledge("stdio cpath unix exec proc", NULL) != 0) 1418 if (pledge("stdio cpath unix id proc exec", NULL) == -1)
1419 fatal("%s: pledge: %s", __progname, strerror(errno)); 1419 fatal("%s: pledge: %s", __progname, strerror(errno));
1420 1420
1421 while (1) { 1421 while (1) {