From 0843016c9b4f9bca4bc2738bef16065bc3a19fc1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 9 Oct 2019 22:58:19 +0200 Subject: [PATCH] pivot_root.2: s/root filesystem/root mount/ As suggested by Eric Biederman. Reported-by: Eric W. Biederman Signed-off-by: Michael Kerrisk --- man2/pivot_root.2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 8c76a8654..1410ab0c9 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -10,7 +10,7 @@ .\" .TH PIVOT_ROOT 2 2019-08-02 "Linux" "Linux Programmer's Manual" .SH NAME -pivot_root \- change the root filesystem +pivot_root \- change the root mount .SH SYNOPSIS .BI "int pivot_root(const char *" new_root ", const char *" put_old ); .PP @@ -18,9 +18,9 @@ pivot_root \- change the root filesystem There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR pivot_root () -changes the root filesystem in the mount namespace of the calling process. -More precisely, it moves the root filesystem to the -directory \fIput_old\fP and makes \fInew_root\fP the new root filesystem. +changes the root mount in the mount namespace of the calling process. +More precisely, it moves the root mount to the +directory \fIput_old\fP and makes \fInew_root\fP the new root mount. The calling process must have the .B CAP_SYS_ADMIN capability in the user namespace that owns the caller's mount namespace.