diff options
author | 2012-06-26 12:06:59 +0000 | |
---|---|---|
committer | 2012-06-26 12:06:59 +0000 | |
commit | 525c910789cb841251db2024e44442ec069100d1 (patch) | |
tree | 8f8afadb16fe468e0f84d4d6b2ff20e9bd4a0161 | |
parent | improve ikev2_msg_retransmit_timeout (diff) | |
download | wireguard-openbsd-525c910789cb841251db2024e44442ec069100d1.tar.xz wireguard-openbsd-525c910789cb841251db2024e44442ec069100d1.zip |
test sandbox with every malloc option
-rw-r--r-- | regress/usr.bin/ssh/connect-privsep.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/connect-privsep.sh b/regress/usr.bin/ssh/connect-privsep.sh index e7f9389816d..48b1bcabd4f 100644 --- a/regress/usr.bin/ssh/connect-privsep.sh +++ b/regress/usr.bin/ssh/connect-privsep.sh @@ -1,4 +1,4 @@ -# $OpenBSD: connect-privsep.sh,v 1.2 2011/06/30 22:44:43 markus Exp $ +# $OpenBSD: connect-privsep.sh,v 1.3 2012/06/26 12:06:59 dtucker Exp $ # Placed in the Public Domain. tid="proxy connect with privsep" @@ -22,3 +22,16 @@ for p in 1 2; do fail "ssh privsep/sandbox+proxyconnect protocol $p failed" fi done + +# Because sandbox is sensitive to changes in libc, especially malloc, retest +# with every malloc.conf option (and none). +for m in '' A F G H J P R S X Z '<' '>'; do + for p in 1 2; do + env MALLOC_OPTIONS="$m" ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true + if [ $? -ne 0 ]; then + fail "ssh privsep/sandbox+proxyconnect protocol $p mopt '$m' failed" + fi + done +done + +exit |