From b6b00dd55e035bfbe311a527b567962ffa77ee43 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 26 Jun 2024 18:18:37 +0200 Subject: Merging upstream version 1:4.15.2. Signed-off-by: Daniel Baumann --- man/newgidmap.1.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'man/newgidmap.1.xml') diff --git a/man/newgidmap.1.xml b/man/newgidmap.1.xml index e4ebc69..e5b770e 100644 --- a/man/newgidmap.1.xml +++ b/man/newgidmap.1.xml @@ -116,6 +116,17 @@ Note that newgidmap may be used only once for a given process. + + 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 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 + the pid is immediately reused. + -- cgit v1.2.3