Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
(If it is not otherwise a mount point, it suffices to bind mount
.I new_root
on top of itself.)
+.PP
+The propagation type of
+.I new_root
+and its parent mount must not be
+.BR MS_SHARED .
.SH RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and
.B EINVAL
The current root is on the rootfs (initial ramfs) filesystem.
.TP
+.B EINVAL
+Either the mount point at
+.IR new_root ,
+or the parent mount of that mount point,
+has propagation type
+.BR MS_SHARED .
+.TP
.B ENOTDIR
\fInew_root\fP or \fIput_old\fP is not a directory.
.TP