summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--regress/connect-privsep.sh13
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ffc4b5f5..85dbe0f33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,9 @@
11 - dtucker@cvs.openbsd.org 2011/06/03 05:35:10 11 - dtucker@cvs.openbsd.org 2011/06/03 05:35:10
12 [regress/cfgmatch.sh] 12 [regress/cfgmatch.sh]
13 use OBJ to find test configs, patch from Tim Rice 13 use OBJ to find test configs, patch from Tim Rice
14 - markus@cvs.openbsd.org 2011/06/30 22:44:43
15 [regress/connect-privsep.sh]
16 test with sandbox enabled; ok djm@
14 17
1520110812 1820110812
16 - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context 19 - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context
diff --git a/regress/connect-privsep.sh b/regress/connect-privsep.sh
index d23cadba5..e7f938981 100644
--- a/regress/connect-privsep.sh
+++ b/regress/connect-privsep.sh
@@ -1,8 +1,9 @@
1# $OpenBSD: connect-privsep.sh,v 1.1 2002/03/21 21:45:07 markus Exp $ 1# $OpenBSD: connect-privsep.sh,v 1.2 2011/06/30 22:44:43 markus Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="proxy connect with privsep" 4tid="proxy connect with privsep"
5 5
6cp $OBJ/sshd_proxy $OBJ/sshd_proxy.orig
6echo 'UsePrivilegeSeparation yes' >> $OBJ/sshd_proxy 7echo 'UsePrivilegeSeparation yes' >> $OBJ/sshd_proxy
7 8
8for p in 1 2; do 9for p in 1 2; do
@@ -11,3 +12,13 @@ for p in 1 2; do
11 fail "ssh privsep+proxyconnect protocol $p failed" 12 fail "ssh privsep+proxyconnect protocol $p failed"
12 fi 13 fi
13done 14done
15
16cp $OBJ/sshd_proxy.orig $OBJ/sshd_proxy
17echo 'UsePrivilegeSeparation sandbox' >> $OBJ/sshd_proxy
18
19for p in 1 2; do
20 ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true
21 if [ $? -ne 0 ]; then
22 fail "ssh privsep/sandbox+proxyconnect protocol $p failed"
23 fi
24done