From: Philip Prindeville Date: Wed, 13 Sep 2023 15:10:32 +0000 (-0600) Subject: base-files: Create /root w/ appropriate permissions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=516a3176a671c4b8f344db39dbc0e003fbb841b8;p=openwrt%2Fstaging%2Fstintel.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 bb369a82d9..67fc5d29c1 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