]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pivot_root.2: 'put_old' can't be a mount point with MS_SHARED propagation
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 26 Jul 2019 21:22:59 +0000 (23:22 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 26 Jul 2019 21:22:59 +0000 (23:22 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/pivot_root.2

index a882bb2a1e57f6b2b39ac9adb3b9364f86d196e5..e1a5b927f4f9ac0aceed82ed3ff8fb29f7a460c2 100644 (file)
@@ -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