jail: don't make mount source read-only
authorDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 08:57:05 +0000 (09:57 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 11:14:49 +0000 (12:14 +0100)
commitb586e7d693d39247d854b03c15610173b7a42f61
treecb910b5110f83c746ae563fc0918c154c59d647b
parent71e75f401133510b91555ae7a457191a972b48ba
jail: don't make mount source read-only

From mount(2):
Specifying mountflags as:
  MS_REMOUNT | MS_BIND | MS_RDONLY
will make access through this mountpoint read-only, without affecting
other mount points.
Hence use MS_BIND when remounting container rootfs read-only.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c