]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pivot_root.2: Note capability requirements
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 27 Jul 2019 07:15:03 +0000 (09:15 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 23 Sep 2019 11:11:18 +0000 (13:11 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/pivot_root.2

index d2a111fc1d659a60b240cd0c0b824efdb78ca3e9..d7ca80d4af5375920eafb95cdb03bb734e3f63f7 100644 (file)
@@ -20,10 +20,9 @@ There is no glibc wrapper for this system call; see NOTES.
 moves the root filesystem of the calling process to the
 directory \fIput_old\fP and makes \fInew_root\fP the new root filesystem
 of the calling process.
-.\"
-.\" The
-.\" .B CAP_SYS_ADMIN
-.\" capability is required.
+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
 .BR pivot_root ()