From: Serge Hallyn Date: Tue, 9 Apr 2024 22:12:46 +0000 (-0500) Subject: newuidmap and newgidmap manpages: fix fd description X-Git-Tag: 4.15.2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e01b9d7d2a6cb790196d04640d341f30e8cf0a4;p=thirdparty%2Fshadow.git 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 --- 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