From: Philip Prindeville Date: Wed, 13 Sep 2023 15:10:32 +0000 (-0600) Subject: base-files: Create /root w/ appropriate permissions X-Git-Tag: v24.10.0-rc1~3781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13892%2Fhead;p=thirdparty%2Fopenwrt.git base-files: Create /root w/ appropriate permissions If /root is created with too permissive permissions, then sshd won't trust the contents of /root/.ssh as being adequately protected. Signed-off-by: Philip Prindeville --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index bb369a82d9b..67fc5d29c1d 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -199,7 +199,8 @@ define Package/base-files/install $(1)/usr/lib \ $(1)/usr/bin \ $(1)/sys \ - $(1)/www \ + $(1)/www + mkdir -p -m 750 \ $(1)/root $(LN) /proc/mounts $(1)/etc/mtab