Skip to content

Commit

Permalink
base-files: Create /root w/ appropriate permissions
Browse files Browse the repository at this point in the history
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 <philipp@redfish-solutions.com>
  • Loading branch information
pprindeville authored and hauke committed Nov 12, 2023
1 parent d41b8a5 commit 86a1cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/base-files/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86a1cb3

Please sign in to comment.