summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-07-31 12:21:34 +1000
committerDamien Miller <djm@mindrot.org>2012-07-31 12:21:34 +1000
commit5a5c2b9063fc3d7315424702b01527ccb0d4c0c9 (patch)
tree6bee6b7c37627e0c40544783400285c51d656348 /servconf.c
parent709a1e90d9cfb7a0e8cdf57fa967d163c010a6bb (diff)
downloadopenssh-git-5a5c2b9063fc3d7315424702b01527ccb0d4c0c9.tar.gz
- djm@cvs.openbsd.org 2012/07/10 02:19:15
[servconf.c servconf.h sshd.c sshd_config] Turn on systrace sandboxing of pre-auth sshd by default for new installs by shipping a config that overrides the current UsePrivilegeSeparation=yes default. Make it easier to flip the default in the future by adding too.
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/servconf.c b/servconf.c
index eccfbad4..427bdeef 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: servconf.c,v 1.227 2012/06/19 18:25:27 markus Exp $ */
+/* $OpenBSD: servconf.c,v 1.228 2012/07/10 02:19:15 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -285,7 +285,7 @@ fill_default_server_options(ServerOptions *options)
options->version_addendum = xstrdup("");
/* Turn privilege separation on by default */
if (use_privsep == -1)
- use_privsep = PRIVSEP_ON;
+ use_privsep = PRIVSEP_NOSANDBOX;
#ifndef HAVE_MMAP
if (use_privsep && options->compression == 1) {
@@ -770,8 +770,9 @@ static const struct multistate multistate_gatewayports[] = {
{ NULL, -1 }
};
static const struct multistate multistate_privsep[] = {
- { "sandbox", PRIVSEP_SANDBOX },
- { "yes", PRIVSEP_ON },
+ { "yes", PRIVSEP_NOSANDBOX },
+ { "sandbox", PRIVSEP_ON },
+ { "nosandbox", PRIVSEP_NOSANDBOX },
{ "no", PRIVSEP_OFF },
{ NULL, -1 }
};