aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-07-26 23:22:59 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-07-26 23:22:59 +0200
commita39e880f67ef8e6406b3e81291dcbeeb185d57d0 (patch)
treee0ad489657ed788abce4063168a2db7b8e6d6dd0
parent34a0f19c76bad5215f939b98b7b27b97775b70fc (diff)
downloadman-pages-a39e880f67ef8e6406b3e81291dcbeeb185d57d0.tar.gz
pivot_root.2: 'put_old' can't be a mount point with MS_SHARED propagation
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pivot_root.29
1 files changed, 9 insertions, 0 deletions
diff --git a/man2/pivot_root.2 b/man2/pivot_root.2
index a882bb2a1e..e1a5b927f4 100644
--- a/man2/pivot_root.2
+++ b/man2/pivot_root.2
@@ -100,6 +100,10 @@ on top of itself.)
The propagation type of
.I new_root
and its parent mount must not be
+.BR MS_SHARED ;
+similarly, if
+.I put_old
+is an existing mount point, its propagation type must not be
.BR MS_SHARED .
.SH RETURN VALUE
On success, zero is returned.
@@ -132,6 +136,11 @@ or the parent mount of that mount point,
has propagation type
.BR MS_SHARED .
.TP
+.B EINVAL
+.I put_old
+is a mount point and has the propagation type
+.BR MS_SHARED .
+.TP
.B ENOTDIR
\fInew_root\fP or \fIput_old\fP is not a directory.
.TP