testing: tighten up the umask before sshd launch, so that the socket is not exposed...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 28 Oct 2008 22:26:10 +0000 (18:26 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 28 Oct 2008 22:26:10 +0000 (18:26 -0400)
tests/basic

index 9c3796cd516d770e9168d05b05830c4a3d75eed5..d82719df8ad9d1d4bf103e635a9e7c375a021682 100755 (executable)
@@ -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=$!