diff options
author | djm <djm> | 2014-02-26 23:17:49 +0000 |
---|---|---|
committer | djm <djm> | 2014-02-26 23:17:49 +0000 |
commit | c8972cc7d8e75d4c7ad10eb932d994899e7edbd9 (patch) | |
tree | 4df2d70bc996397530a9d5052c55aa0c12c1fe2e /sshd.c | |
parent | e6a6b4c960b7ef386cea473dcafddddb13842c43 (diff) | |
download | openssh-c8972cc7d8e75d4c7ad10eb932d994899e7edbd9.tar.gz |
- djm@cvs.openbsd.org 2014/02/26 20:28:44
[auth2-gss.c gss-serv.c ssh-gss.h sshd.c]
bz#2107 - cache OIDs of supported GSSAPI mechanisms before privsep
sandboxing, as running this code in the sandbox can cause violations;
ok markus@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.418 2014/02/02 03:44:32 djm Exp $ */ +/* $OpenBSD: sshd.c,v 1.419 2014/02/26 20:28:44 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -618,6 +618,10 @@ privsep_preauth_child(void) /* Enable challenge-response authentication for privilege separation */ privsep_challenge_enable(); + /* Cache supported mechanism OIDs for later use */ + if (options.gss_authentication) + ssh_gssapi_prepare_supported_oids(); + arc4random_stir(); arc4random_buf(rnd, sizeof(rnd)); RAND_seed(rnd, sizeof(rnd)); |