Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2017 07:28:03 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        bugzilla-noreply@freebsd.org
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: [Bug 221064] zfs should not be able to shadow mount on root directory from userspace
Message-ID:  <64645.1501313283@critter.freebsd.dk>
In-Reply-To: <bug-221064-3630-CUGgC70s9s@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221064-3630@https.bugs.freebsd.org/bugzilla/> <bug-221064-3630-CUGgC70s9s@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <bug-221064-3630-CUGgC70s9s@https.bugs.freebsd.org/bugzilla/>, =
bugzi
lla-noreply@freebsd.org writes:

>I personally think that allowing to mount over / is more dangerous than u=
seful.

Quite the contrary, it is far more useful than dangerous:  It is not
uncommon for embedded systems to boot with a absolutely minimal root
filesystem compiled into the kernel, and /sbin/init in that filesystem
will mount the "real" root over / and exec the "real" /sbin/init.

-- =

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    =

Never attribute to malice what can adequately be explained by incompetence=
.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64645.1501313283>