Skip to content

Commit 1fb7ab4

Browse files
committed
Lock down /boot and /root
This adds nodev, noexec, and nosuid to the mount options for /boot. /root just gets nodev since it doesn't seem unreasable to run an executable from there.
1 parent 5bf97ec commit 1fb7ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rootfs_overlay/etc/erlinit.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
# the history is loaded. If this mount fails due to corruption, etc.,
5050
# nerves_runtime will auto-format it. Your applications will need to handle
5151
# initializing any expected files and folders.
52-
-m /dev/mmcblk0p4:/root:ext4::
53-
-m /dev/mmcblk0p1:/boot:vfat:ro:
52+
-m /dev/mmcblk0p1:/boot:vfat:ro,nodev,noexec,nosuid:
53+
-m /dev/mmcblk0p4:/root:ext4:nodev:
5454

5555
# Erlang release search path
5656
-r /srv/erlang

0 commit comments

Comments
 (0)