| # $OpenBSD: reexec.sh,v 1.5 2004/10/08 02:01:50 djm Exp $ |
| # Placed in the Public Domain. |
| SSHD_COPY=$OBJ/sshd${EXEEXT} |
| # Start a sshd and then delete it |
| ${SSH} -nqo "Protocol=$p" -F $OBJ/ssh_config somehost \ |
| fail "ssh cat $DATA failed" |
| cmp ${DATA} ${COPY} || fail "corrupted copy" |
| verbose "test config passing" |
| cp $OBJ/sshd_config $OBJ/sshd_config.orig |
| echo "InvalidXXX=no" >> $OBJ/sshd_config |
| $SUDO kill `cat $PIDFILE` |
| cp $OBJ/sshd_config.orig $OBJ/sshd_config |
| verbose "test reexec fallback" |
| $SUDO kill `cat $PIDFILE` |
| verbose "test reexec fallback without privsep" |
| cp $OBJ/sshd_config.orig $OBJ/sshd_config |
| echo "UsePrivilegeSeparation=no" >> $OBJ/sshd_config |
| $SUDO kill `cat $PIDFILE` |