From beeefb214a2dc8917b5a31945e740ecce4536764 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 28 Jun 2023 17:45:36 +0200 Subject: cooker, seitan: Add support for GID/UID in context Similarly to namespace specifications, the special value "caller", as well as login/group names and numeric UID/GIDs are supported. Example of usage in demo/mknod.hjson. Light on checks and with some TODOs left behind at the moment. Signed-off-by: Stefano Brivio --- operations.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'operations.h') diff --git a/operations.h b/operations.h index 9f2e2d6..6cff7a8 100644 --- a/operations.h +++ b/operations.h @@ -37,6 +37,8 @@ struct arg_clone { const void *args[6]; char ns_path[NS_TYPE_MAX + 1][PATH_MAX]; char cwd[PATH_MAX]; + uid_t uid; + gid_t gid; long ret; int err; }; -- cgit v1.2.3