]> git.ipfire.org Git - thirdparty/man-pages.git/commit
pivot_root.2: There is no restriction against 'put_old' being a mount point
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 27 Jul 2019 06:55:23 +0000 (08:55 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 23 Sep 2019 11:11:19 +0000 (13:11 +0200)
commitb16dd3037db484c3308ec16b426615a5bd881f98
treeadf521a66795bd061a61e26990bfd2a80b003dfe
parent83cc245d6d54d391b6102d8809f858d4334350d2
pivot_root.2: There is no restriction against 'put_old' being a mount point

As far as I can see from the source code, the statement that
"No other filesystem may be mounted on 'put_old'" is incorrect.
Even looking at the 2.4.0 source code, there I can't see such
a restriction. In addition, some testing on a 5.0 kernel
(mounting 'put_old' in the new mount namespace just before
pivot_root()) did not result in an error for this case when
calling pivot_root().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/pivot_root.2