pivot_root.2: Note capability requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-07-27 09:15:03 +02:00
parent 81b24320d8
commit fdc558bda9
1 changed files with 3 additions and 4 deletions

View 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 ()