aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-07-30 16:09:36 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-09-23 13:11:19 +0200
commitfc17fc65024a10161e2334711fbd22e7d69665c7 (patch)
tree67aeeb19324bdeb6d181159bef5ea9d50a0d3398
parentd761305516231f30fc3a231586411d91241e79f8 (diff)
downloadman-pages-fc17fc65024a10161e2334711fbd22e7d69665c7.tar.gz
pivot_root.2: srcfix: FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pivot_root.28
1 files changed, 8 insertions, 0 deletions
diff --git a/man2/pivot_root.2 b/man2/pivot_root.2
index 5b4e38659e..6853e9bd9a 100644
--- a/man2/pivot_root.2
+++ b/man2/pivot_root.2
@@ -94,6 +94,14 @@ similarly, if
.I put_old
is an existing mount point, its propagation type must not be
.BR MS_SHARED .
+.\" FIXME
+.\" mtk: I am very suspicious of the following paragraph. My testing suggests
+.\" that pivot_root() fails with the error EINVAL in the case where
+.\" the current root (after chroot()) is not a mount point. And tehre are
+.\" these lines in pivot_root():
+.\" error = -EINVAL;
+.\" if (root.mnt->mnt_root != root.dentry)
+.\" goto out4; /* not a mountpoint */
.PP
If the current root is not a mount point (e.g., after an earlier
.BR chroot (2)),