summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-18 16:02:12 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-18 16:04:18 +0100
commitf7038ce6552a5d0a43265ab88f253ce3bc15f6f1 (patch)
tree3b5678fc9f03310041e9d2f26e1110020fbef5b2 /tests
parent937ef1d7aa8452506760cbac6fa2f9485ff14dea (diff)
downloadalpine-conf-f7038ce6552a5d0a43265ab88f253ce3bc15f6f1.zip
setup-alpine: include /root instead of only authorized_keys
This works around issue where /root might get world rx permissions. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10532
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_alpine_test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/setup_alpine_test b/tests/setup_alpine_test
index 668d20b..82e64b6 100755
--- a/tests/setup_alpine_test
+++ b/tests/setup_alpine_test
@@ -54,7 +54,7 @@ setup_alpine_create_answerfile_body() {
|| atf_fail "ssh key not set for juser"
grep -x "ssh-rsa blahbla user@example.com" root/.ssh/authorized_keys \
|| atf_fail "ssh key not set for root"
- for file in home/juser root/.ssh/authorized_keys; do
+ for file in home/juser root; do
grep -x "+.*$file" etc/apk/protected_paths.d/lbu.list \
|| atf_fail "$file was not added to lbu.list"
done