testing: tighten up the umask before sshd launch, so that the socket is not exposed...
[monkeysphere.git] / 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=$!