aboutgitcodelistschat:MatrixIRC
path: root/operations.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-28 17:45:36 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-28 17:47:35 +0200
commitbeeefb214a2dc8917b5a31945e740ecce4536764 (patch)
treef0dcb124e3d1c3763842c4119daf786fd222fce3 /operations.h
parent7c783a3b82b27033b86f75c018f991ffa59fa548 (diff)
downloadseitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar.gz
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar.bz2
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar.lz
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar.xz
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.tar.zst
seitan-beeefb214a2dc8917b5a31945e740ecce4536764.zip
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 <sbrivio@redhat.com>
Diffstat (limited to 'operations.h')
-rw-r--r--operations.h2
1 files changed, 2 insertions, 0 deletions
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;
};