From: Michael Kerrisk Date: Sat, 27 Jul 2019 07:15:03 +0000 (+0200) Subject: pivot_root.2: Note capability requirements X-Git-Tag: man-pages-5.03~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdc558bda9224206828d100ec9c7d0d44cdf755d;p=thirdparty%2Fman-pages.git pivot_root.2: Note capability requirements Signed-off-by: Michael Kerrisk --- diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index d2a111fc1d..d7ca80d4af 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -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 ()