From: Daniel Kahn Gillmor Date: Tue, 28 Oct 2008 22:26:10 +0000 (-0400) Subject: testing: tighten up the umask before sshd launch, so that the socket is not exposed... X-Git-Tag: monkeysphere_0.18-1~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bee6028687945fd7d8d6eab98c26def2ecadf8b1;p=monkeysphere.git testing: tighten up the umask before sshd launch, so that the socket is not exposed during the test. --- 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=$!