summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-01-24 17:21:53 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-01-30 01:27:25 +0000
commit9919b50aecb196ff9e005ab3d13689bc011233a7 (patch)
tree9b7bfb33569c9b2ffd0fa58990fdf6d42576c2e6 /src
parentad3645074e368e7277fa2c25d8f87ebd1f522e87 (diff)
downloadunit-9919b50aecb196ff9e005ab3d13689bc011233a7.tar.gz
unit-9919b50aecb196ff9e005ab3d13689bc011233a7.tar.bz2
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 <z.hong@f5.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_clone.h2
1 files changed, 2 insertions, 0 deletions
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;