From 9919b50aecb196ff9e005ab3d13689bc011233a7 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Wed, 24 Jan 2024 17:21:53 +0000 Subject: [PATCH] Isolation: Add a new nxt_cred_t type This is a generic type to represent a uid_t/gid_t on Linux when user namespaces are in use. Technically this only needs to be an unsigned int, but we make it an int64_t so we can make use of the existing NXT_CONF_MAP_INT64 type. This will be used in subsequent commits. Reviewed-by: Zhidao Hong Signed-off-by: Andrew Clayton --- src/nxt_clone.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nxt_clone.h b/src/nxt_clone.h index 6cea1bd7..1677dc77 100644 --- a/src/nxt_clone.h +++ b/src/nxt_clone.h @@ -9,6 +9,8 @@ #if (NXT_HAVE_CLONE_NEWUSER) +typedef int64_t nxt_cred_t; + typedef struct { nxt_int_t container; nxt_int_t host;