summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readconf.c
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2018-07-18 11:34:04 +0000
committerdtucker <dtucker@openbsd.org>2018-07-18 11:34:04 +0000
commitbe0d4aa57315afcb114022d0e7d8dcc7a24ed94d (patch)
treed1be57b34d9dd811b1336e5aa5f3b0fb46b1df4c /usr.bin/ssh/readconf.c
parentReplace VATTR_NULL() with memset(3) in fusefs_getattr(). VATTR_NULL() (diff)
downloadwireguard-openbsd-be0d4aa57315afcb114022d0e7d8dcc7a24ed94d.tar.xz
wireguard-openbsd-be0d4aa57315afcb114022d0e7d8dcc7a24ed94d.zip
Remove support for running ssh(1) setuid and fatal if attempted.
Do not link uidwap.c into ssh any more. Neuters UsePrivilegedPort, which will be marked as deprecated shortly. ok markus@ djm@
Diffstat (limited to 'usr.bin/ssh/readconf.c')
-rw-r--r--usr.bin/ssh/readconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index 53f56c6968f..3454608770c 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.292 2018/07/04 13:49:31 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.293 2018/07/18 11:34:04 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -483,9 +483,6 @@ execute_in_shell(const char *cmd)
if ((pid = fork()) == 0) {
char *argv[4];
- /* Child. Permanently give up superuser privileges. */
- permanently_drop_suid(original_real_uid);
-
/* Redirect child stdin and stdout. Leave stderr */
if (dup2(devnull, STDIN_FILENO) == -1)
fatal("dup2: %s", strerror(errno));