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 committed Sep 14, 2023
1 parent 6cf2709 commit ba6ba5b
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 @@ -196,7 +196,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 ba6ba5b

Please sign in to comment.