diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-07-26 17:10:06 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-07-26 17:10:06 +0200 |
| commit | 1a0b1fd76b9933f0ca223ca814c7076b0fb2f75a (patch) | |
| tree | 15657854a7033c9c618091ffe36235d92a249c6f /man2/pivot_root.2 | |
| parent | 37704bfc8f81c8ea9a3fdfd12f8285354e9b2e47 (diff) | |
| download | man-pages-1a0b1fd76b9933f0ca223ca814c7076b0fb2f75a.tar.gz | |
pivot_root.2: ERRORS: EINVAL occurs if 'new_root' or its parent has shared propagation
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/pivot_root.2')
| -rw-r--r-- | man2/pivot_root.2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 14904e29b3..a07b73b153 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -96,6 +96,11 @@ must be a mount point. (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 @@ -120,6 +125,13 @@ is not a mount point. .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 |
