From 2e01b9d7d2a6cb790196d04640d341f30e8cf0a4 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 9 Apr 2024 17:12:46 -0500 Subject: [PATCH] newuidmap and newgidmap manpages: fix fd description The manpages for newuidmap and newgidmap had a typo "[pid[" instead of "[pid]". They were also unclear about what the /proc/pid fd should be. Fix both. Closes #977 Reported-by: igo95862@yandex.ru Signed-off-by: Serge Hallyn --- man/newgidmap.1.xml | 4 ++-- man/newuidmap.1.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/newgidmap.1.xml b/man/newgidmap.1.xml index 9b7683eba..e5b770e89 100644 --- a/man/newgidmap.1.xml +++ b/man/newgidmap.1.xml @@ -120,8 +120,8 @@ Instead of an integer process id, the first argument may be specified as fd:N, where the integer N is the file descriptor number for the calling process's opened - file for /proc/[pid[. In this case, - newgidmap will use + file descriptor for the directory /proc/[pid]. + In this case, newgidmap will use openat2 to open the gid_map file under that directory, avoiding a TOCTTOU in case the process exits and diff --git a/man/newuidmap.1.xml b/man/newuidmap.1.xml index ca917a772..7aed0d506 100644 --- a/man/newuidmap.1.xml +++ b/man/newuidmap.1.xml @@ -120,8 +120,8 @@ Instead of an integer process id, the first argument may be specified as fd:N, where the integer N is the file descriptor number for the calling process's opened - file for /proc/[pid[. In this case, - newuidmap will use + file descriptor for the directory /proc/[pid]. + In this case, newuidmap will use openat2 to open the uid_map file under that directory, avoiding a TOCTTOU in case the process exits and -- 2.47.3