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 --- demo/mknod.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demo') diff --git a/demo/mknod.hjson b/demo/mknod.hjson index 9124a8a..1936eb8 100644 --- a/demo/mknod.hjson +++ b/demo/mknod.hjson @@ -26,7 +26,7 @@ "major": 1, "minor": { "tag": { "get": "minor" } } }, - "context": { "mnt": "caller" } + "context": { "mnt": "caller", "uid": "caller", "gid": "caller" } }, "return": { "value": 0, "error": 0 } } -- cgit v1.2.3