mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
virtcontainers: improve security and mount the rootfs as read-only fs
Mounting the rootfs as read-only fs the binaries can't be modified. fixes #1389 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
8e72cf15e6
commit
64984667ad
@ -32,7 +32,7 @@ var qemuPaths = map[string]string{
|
|||||||
|
|
||||||
var kernelRootParams = []Param{
|
var kernelRootParams = []Param{
|
||||||
{"root", "/dev/pmem0p1"},
|
{"root", "/dev/pmem0p1"},
|
||||||
{"rootflags", "dax,data=ordered,errors=remount-ro rw"},
|
{"rootflags", "dax,data=ordered,errors=remount-ro ro"},
|
||||||
{"rootfstype", "ext4"},
|
{"rootfstype", "ext4"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user