libdevuansdk

common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log | Files | Refs | Submodules | README | LICENSE

commit 560371647a95b8de225e5b99f44c94e025e16097
parent e3bf8666939e35c120e97187267b9eb784a278ff
Author: gryrmln <gryrmln@localhost>
Date:   Mon, 12 Apr 2021 15:08:42 +0100

Mount the host sys,dev,dev/pts as read-only for bootstrap (zlibs/helpers)

Signed-off-by: gryrmln <gryrmln@localhost>

Diffstat:
Mzlibs/helpers | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/zlibs/helpers b/zlibs/helpers @@ -133,10 +133,13 @@ devprocsys() ckreq || return 1 if [[ $watdo = mount ]]; then - sudo mount -o bind /sys $werdo/sys && act "mounted sys" && \ - sudo mount -t proc proc $werdo/proc && act "mounted proc" && \ - sudo mount -o bind /dev $werdo/dev && act "mounted dev" && \ - sudo mount -o bind /dev/pts $werdo/dev/pts && act "mounted devpts" && \ + sudo mount -t proc proc,ro $werdo/proc && act "mounted proc" && \ + sudo mount -o bind /sys $werdo/sys && \ + sudo mount -o remount,bind,ro /sys $werdo/sys && act "mounted sys" && \ + sudo mount -o bind /dev $werdo/dev && \ + sudo mount -o remount,bind,ro /dev $werdo/dev && act "mounted dev" && \ + sudo mount -o bind /dev/pts $werdo/dev/pts && \ + sudo mount -o remount,bind,ro /dev/pts $werdo/dev/pts && act "mounted devpts" && \ return 0 elif [[ $watdo = umount ]]; then sudo umount $werdo/dev/pts && act "umounted devpts"