From: Darren Tucker Date: Fri, 24 Feb 2023 02:44:13 +0000 (+1100) Subject: Explicitly set permissions on user and host keys. X-Git-Tag: V_9_3_P1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5d4c843df5605b043a758d69f9a611ef63c479;p=thirdparty%2Fopenssh-portable.git Explicitly set permissions on user and host keys. On cygwin, the umask might not be sufficient. Should fix tests on Github runners. --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 325393ce9..4091d3a37 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -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