]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pivot_root.2: Mention containers as a use case for pivot_root()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 27 Jul 2019 07:28:17 +0000 (09:28 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 23 Sep 2019 11:11:19 +0000 (13:11 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/pivot_root.2

index 5d13fc1c3817c82bff0d85c6db11e46fe2923c9c..569faa5640221db65219ab7315ef50df5ac3b3bc 100644 (file)
@@ -25,12 +25,14 @@ The calling process must have the
 .B CAP_SYS_ADMIN
 capability in the user namespace that owns the caller's mount namespace.
 .PP
-The typical use of
+A typical use of
 .BR pivot_root ()
 is during system startup, when the
 system mounts a temporary root filesystem (e.g., an \fBinitrd\fP), then
 mounts the real root filesystem, and eventually turns the latter into
 the current root of all relevant processes or threads.
+A modern use is to set up a root filesystem during
+the creation of a container.
 .PP
 .BR pivot_root ()
 may or may not change the current root and the current