aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/user_namespaces.77
1 files changed, 7 insertions, 0 deletions
diff --git a/man7/user_namespaces.7 b/man7/user_namespaces.7
index d637eac199..bcb9d7252f 100644
--- a/man7/user_namespaces.7
+++ b/man7/user_namespaces.7
@@ -1031,6 +1031,13 @@ main(int argc, char *argv[])
argv[0], (long) child_pid);
/* Update the UID and GID maps in the child */
+.\" FIXME: Alban Crequy notes:
+.\" The program userns_child_exec.c in user_namespaces.7 should be updated
+.\" to write in /proc/.../setgroups, near the line:
+.\" /* Update the UID and GID maps in the child */
+.\"
+.\" Otherwise, the example given in the manpage does not work:
+.\" $ ./userns_child_exec -p -m -U -M '0 1000 1' -G '0 1000 1' bash
if (uid_map != NULL || map_zero) {
snprintf(map_path, PATH_MAX, "/proc/%ld/uid_map",