[Bug 221064] zfs should not be able to shadow mount on root directory from userspace

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 29 07:08:45 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221064

--- Comment #4 from Andriy Gapon <avg at FreeBSD.org> ---
(In reply to Allan Jude from comment #3)
I am not sure that that policy has anything to do with OpenZFS.
Each operating system handles that in its own way.
For example, as far as I know, in illumos you can not mount any filesystem over
any non-empty directory.

In FreeBSD we allow mounts anywhere, including root.
And there is nothing ZFS specific about that.
I personally think that allowing to mount over / is more dangerous than useful.
But people always find creative uses for every feature and misfeature, so I
think that a wider discussion about such a fundamental decision will be
required.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list