diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-21 21:45:08 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-03-21 21:45:08 +0000 |
commit | 74d71a21f81699632a7d334453274a14937cad55 (patch) | |
tree | 62c396fd708ab6257360fd7a03f88d740bb57e95 /regress/usr.bin | |
parent | 605e71c7e2211dbbeb3e5ae5fc81cd4eb0edf9d8 (diff) |
try to (proxy)connect with UsePrivilegeSeparation enabled.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/Makefile | 3 | ||||
-rw-r--r-- | regress/usr.bin/ssh/connect-privsep.sh | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index bebfd43d5db..b7f6d4498c1 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2002/03/15 13:08:56 markus Exp $ +# $OpenBSD: Makefile,v 1.7 2002/03/21 21:45:07 markus Exp $ REGRESSTARGETS= t1 t2 t3 t4 t5 t6 t7 @@ -6,6 +6,7 @@ CLEANFILES+= t2.out t6.out1 t6.out2 t7.out t7.out.pub LTESTS= connect \ proxy-connect \ + connect-privsep \ proto-version \ proto-mismatch \ exit-status \ diff --git a/regress/usr.bin/ssh/connect-privsep.sh b/regress/usr.bin/ssh/connect-privsep.sh new file mode 100644 index 00000000000..d23cadba525 --- /dev/null +++ b/regress/usr.bin/ssh/connect-privsep.sh @@ -0,0 +1,13 @@ +# $OpenBSD: connect-privsep.sh,v 1.1 2002/03/21 21:45:07 markus Exp $ +# Placed in the Public Domain. + +tid="proxy connect with privsep" + +echo 'UsePrivilegeSeparation yes' >> $OBJ/sshd_proxy + +for p in 1 2; do + ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true + if [ $? -ne 0 ]; then + fail "ssh privsep+proxyconnect protocol $p failed" + fi +done |