HomeFreeBSD

MFC r327032:

Description

MFC r327032:

Add a new kernel config option, MD_ROOT_READONLY, which forces on the
MD_READONLY flag for the md device automatically instantiated during
kernel init for an mdroot filesystem.

Note that there is specifically and by design no tunable or sysctl
control over this feature. Without this option, you already have control
over whether the mdroot fs is writeable using vfs.root.mountfrom.options
from loader(8), the root_rw_mount rcvar, and by using "mount -u[rw] /"
or equivelent on the fly. This option is being added to provide a way
to make the mdroot fs truly immutable before userland code begins running.

Differential Revision: https://reviews.freebsd.org/D13411

Details

Provenance
ianAuthored on
Differential Revision
D13411: Add MD_ROOT_READONLY option to disallow writeable remount of root fs
Parents
rS327654: MFC r326924-r326925
Branches
Unknown
Tags
Unknown