diff options
author | Damien Miller <djm@mindrot.org> | 2008-03-07 18:31:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-03-07 18:31:24 +1100 |
commit | 76e95daad1f38e0ba8e7bf0554cadd6e3aaf5235 (patch) | |
tree | d578b6faed195267a3b5d6dd036a1862c3ca79a3 /session.c | |
parent | 757a38a43b0820c3fb13dfbd0ab7d8e1f5a6eee1 (diff) |
- djm@cvs.openbsd.org 2008/02/13 22:38:17
[servconf.h session.c sshd.c]
rekey arc4random and OpenSSL RNG in postauth child
closefrom fds > 2 before shell/command execution
ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.227 2008/02/10 10:54:29 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.228 2008/02/13 22:38:17 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -94,9 +94,6 @@ | |||
94 | #include <kafs.h> | 94 | #include <kafs.h> |
95 | #endif | 95 | #endif |
96 | 96 | ||
97 | /* Magic name for internal sftp-server */ | ||
98 | #define INTERNAL_SFTP_NAME "internal-sftp" | ||
99 | |||
100 | /* func */ | 97 | /* func */ |
101 | 98 | ||
102 | Session *session_new(void); | 99 | Session *session_new(void); |
@@ -491,6 +488,8 @@ do_exec_no_pty(Session *s, const char *command) | |||
491 | cray_init_job(s->pw); /* set up cray jid and tmpdir */ | 488 | cray_init_job(s->pw); /* set up cray jid and tmpdir */ |
492 | #endif | 489 | #endif |
493 | 490 | ||
491 | closefrom(STDERR_FILENO + 1); | ||
492 | |||
494 | /* Do processing for the child (exec command etc). */ | 493 | /* Do processing for the child (exec command etc). */ |
495 | do_child(s, command); | 494 | do_child(s, command); |
496 | /* NOTREACHED */ | 495 | /* NOTREACHED */ |
@@ -611,6 +610,8 @@ do_exec_pty(Session *s, const char *command) | |||
611 | # endif | 610 | # endif |
612 | #endif | 611 | #endif |
613 | 612 | ||
613 | closefrom(STDERR_FILENO + 1); | ||
614 | |||
614 | /* Do common processing for the child, such as execing the command. */ | 615 | /* Do common processing for the child, such as execing the command. */ |
615 | do_child(s, command); | 616 | do_child(s, command); |
616 | /* NOTREACHED */ | 617 | /* NOTREACHED */ |