1 # $OpenBSD: reexec.sh,v 1.5 2004/10/08 02:01:50 djm Exp $
2 # Placed in the Public Domain.
8 SSHD_ORIG
=$SSHD${EXEEXT}
9 SSHD_COPY
=$OBJ/sshd
${EXEEXT}
11 # Start a sshd and then delete it
14 cp $SSHD_ORIG $SSHD_COPY
25 verbose
"$tid: proto $p"
26 ${SSH} -nqo "Protocol=$p" -F $OBJ/ssh_config somehost \
29 fail
"ssh cat $DATA failed"
31 cmp ${DATA} ${COPY} || fail
"corrupted copy"
36 verbose
"test config passing"
38 cp $OBJ/sshd_config
$OBJ/sshd_config.orig
40 echo "InvalidXXX=no" >> $OBJ/sshd_config
44 $SUDO kill `$SUDO cat $PIDFILE`
47 cp $OBJ/sshd_config.orig
$OBJ/sshd_config
49 verbose
"test reexec fallback"
56 $SUDO kill `$SUDO cat $PIDFILE`
59 verbose
"test reexec fallback without privsep"
61 cp $OBJ/sshd_config.orig
$OBJ/sshd_config
62 echo "UsePrivilegeSeparation=no" >> $OBJ/sshd_config
69 $SUDO kill `$SUDO cat $PIDFILE`