From f7038ce6552a5d0a43265ab88f253ce3bc15f6f1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 18 Nov 2022 16:02:12 +0100 Subject: 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 --- setup-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup-alpine.in') diff --git a/setup-alpine.in b/setup-alpine.in index fb8a76e..2308f88 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -245,7 +245,7 @@ done setup-sshd ${ROOTSSHKEY+-k "$ROOTSSHKEY"} ${SSHDOPTS} root_keys="$ROOT"/root/.ssh/authorized_keys if [ -f "$root_keys" ]; then - lbu add "$root_keys" + lbu add "$ROOT"/root fi if is_xen_dom0; then -- cgit v1.2.3