Skip to content

Commit db54c95

Browse files
committed
Mount proc and sys as read-only
1 parent bc09d65 commit db54c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ function mount_image() {
210210
sudo mkdir -p $mount_path/sys
211211
sudo mount -o bind /dev $mount_path/dev
212212
sudo mount -o bind /dev/pts $mount_path/dev/pts
213-
sudo mount -o bind /proc $mount_path/proc
214-
sudo mount -o bind /sys $mount_path/sys
213+
sudo mount -o bind,ro /proc $mount_path/proc
214+
sudo mount -o bind,ro /sys $mount_path/sys
215215
}
216216

217217
function unmount_image() {

0 commit comments

Comments
 (0)