summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-28 18:26:10 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-28 18:26:10 -0400
commitbee6028687945fd7d8d6eab98c26def2ecadf8b1 (patch)
tree4ca1245b753f8deb6c7178388b97101306a1e29c /tests
parent30ac88c7bd68e38af8b2b06327bc1c6492a337c6 (diff)
testing: tighten up the umask before sshd launch, so that the socket is not exposed during the test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic b/tests/basic
index 9c3796c..d82719d 100755
--- a/tests/basic
+++ b/tests/basic
@@ -20,6 +20,7 @@ gpgadmin() {
}
launch_sshd() {
+ umask 0077
socat EXEC:"/usr/sbin/sshd -f ${SSHD_CONFIG} -i -D -e" "UNIX-LISTEN:${SOCKET}" 2> "$TEMPDIR"/sshd.log &
export SSHD_PID=$!