diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-04 14:48:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-04 14:48:14 -0400 |
commit | 776bc13f0b83c47c87b73baf7dab2a044ed767b8 (patch) | |
tree | 1ed0970588fd3084f695135ab011dd27b91cc87a | |
parent | e9529270fe756b215a53166f30cde761d045bd47 (diff) |
test: librerelease: Use AuthorizedKeysCommand to bypass perm checks on $TMPDIR
If $TMPDIR is permissively owned (as /tmp is), then sshd will refuse to
look at the AuthorizedKeysFile. So bypass that permission check by
configuring AuthrorizedKeysCommand to just `cat` that file.
-rw-r--r-- | test/cases/librerelease.bats | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cases/librerelease.bats b/test/cases/librerelease.bats index 1e29525..3aa8450 100644 --- a/test/cases/librerelease.bats +++ b/test/cases/librerelease.bats @@ -7,7 +7,8 @@ setup() { # Configure and start the SSH server install -Dm644 /dev/stdin "$tmpdir/etc/ssh/sshd_config" <<-eot - AuthorizedKeysFile ${HOME}/.ssh/id_rsa.pub + AuthorizedKeysCommand /usr/bin/cat ${HOME}/.ssh/id_rsa.pub + AuthorizedKeysCommandUser ${USER} PasswordAuthentication no AcceptEnv TMPDIR AcceptEnv _HOME GNUPGHOME XDG_CACHE_HOME XDG_CONFIG_HOME |