diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2017-08-07 00:53:51 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-09-18 14:11:22 +1000 |
commit | ec218c105daa9f5b192f7aa890fdb2d4fdc4e9d8 (patch) | |
tree | 5096804b3702080ce84428fde26872b2e639abe7 /regress | |
parent | 239c57d5bc2253e27e3e6ad7ac52ec8c377ee24e (diff) |
upstream commit
Remove non-privsep test since disabling privsep is now
deprecated.
Upstream-Regress-ID: 77ad3f3d8d52e87f514a80f285c6c1229b108ce8
Diffstat (limited to 'regress')
-rw-r--r-- | regress/login-timeout.sh | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/regress/login-timeout.sh b/regress/login-timeout.sh index 12207fd99..4c2d07dc2 100644 --- a/regress/login-timeout.sh +++ b/regress/login-timeout.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: login-timeout.sh,v 1.8 2016/12/16 01:06:27 dtucker Exp $ | 1 | # $OpenBSD: login-timeout.sh,v 1.9 2017/08/07 00:53:51 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="connect after login grace timeout" | 4 | tid="connect after login grace timeout" |
@@ -10,23 +10,9 @@ echo "LoginGraceTime 10s" >> $OBJ/sshd_config | |||
10 | echo "MaxStartups 1" >> $OBJ/sshd_config | 10 | echo "MaxStartups 1" >> $OBJ/sshd_config |
11 | start_sshd | 11 | start_sshd |
12 | 12 | ||
13 | (echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 & | 13 | (echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 & |
14 | sleep 15 | 14 | sleep 15 |
15 | ${SSH} -F $OBJ/ssh_config somehost true | 15 | ${SSH} -F $OBJ/ssh_config somehost true |
16 | if [ $? -ne 0 ]; then | 16 | if [ $? -ne 0 ]; then |
17 | fail "ssh connect after login grace timeout failed with privsep" | 17 | fail "ssh connect after login grace timeout failed" |
18 | fi | ||
19 | |||
20 | stop_sshd | ||
21 | |||
22 | trace "test login grace without privsep" | ||
23 | echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config | ||
24 | start_sshd | ||
25 | sleep 1 | ||
26 | |||
27 | (echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 & | ||
28 | sleep 15 | ||
29 | ${SSH} -F $OBJ/ssh_config somehost true | ||
30 | if [ $? -ne 0 ]; then | ||
31 | fail "ssh connect after login grace timeout failed without privsep" | ||
32 | fi | 18 | fi |