Skip to content

Commit

Permalink
Mount proc and sys as read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Dec 14, 2024
1 parent bc09d65 commit db54c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ function mount_image() {
sudo mkdir -p $mount_path/sys
sudo mount -o bind /dev $mount_path/dev
sudo mount -o bind /dev/pts $mount_path/dev/pts
sudo mount -o bind /proc $mount_path/proc
sudo mount -o bind /sys $mount_path/sys
sudo mount -o bind,ro /proc $mount_path/proc
sudo mount -o bind,ro /sys $mount_path/sys
}

function unmount_image() {
Expand Down

0 comments on commit db54c95

Please sign in to comment.