]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Explicitly set permissions on user and host keys.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 24 Feb 2023 02:44:13 +0000 (13:44 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 24 Feb 2023 02:44:13 +0000 (13:44 +1100)
On cygwin, the umask might not be sufficient.  Should fix tests on
Github runners.

regress/test-exec.sh

index 325393ce9927e090e12d7373772f171c86d246ea..4091d3a37c936c72ad6f20a5709079acd29e40ac 100644 (file)
@@ -674,6 +674,9 @@ for t in ${SSH_HOSTKEY_TYPES}; do
 
        # don't use SUDO for proxy connect
        echo HostKey $OBJ/$t >> $OBJ/sshd_proxy
+
+       # explicitly set perms since cygwin inhertited perms might be too open
+       chmod 600 $OBJ/$t $OBJ/host.$t
 done
 chmod 644 $OBJ/authorized_keys_$USER