pivot_root.2: Correct the list of mount points that can't be MS_SHARED

Eric Biederman noted that my list of directories that could not
have shared propagation was incorrect.  I had written that
new_root could not be shared; rather it should be: the parent of
the current root mount point.

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-09-23 12:26:37 +02:00
parent f646ac88ef
commit d4b2104ae5
1 changed files with 3 additions and 3 deletions

View File

@ -91,9 +91,9 @@ must be a mount point.
.I new_root .I new_root
on top of itself.) on top of itself.)
.IP \- .IP \-
The propagation type of The propagation type of the parent mount of
.I new_root .IR new_root
and its parent mount must not be and the parent mount of the current root directory must not be
.BR MS_SHARED ; .BR MS_SHARED ;
similarly, if similarly, if
.I put_old .I put_old