From 65b5eacaa500e702b982c6848e1ffc18094bc9a9 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 9 Jun 2023 11:07:25 +0200 Subject: demo: with mknod and podman Splited common functions in web/common.sh and created new script for mknod demo. The demo uses the mount namespace of the caller. Additionally, this removes extra commented lines in demo/mknod.hjson. --- demo/mknod.hjson | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'demo') diff --git a/demo/mknod.hjson b/demo/mknod.hjson index 01f3c07..7055aee 100644 --- a/demo/mknod.hjson +++ b/demo/mknod.hjson @@ -26,37 +26,8 @@ "major": 1, "minor": { "tag": { "get": "minor" } } }, - "context": { "cwd": "caller" } + "context": { "mnt": "caller" } }, "return": { "value": 0 } } ] - -/* - * INTFLAGS, LONGFLAGS, U32FLAGS - * - * "field": { "in": [ "ipc", "mount", "uts" ] } - * flags & set - * !!(flags & (ipc | mount | ns)) - * - * "field": { "all": [ "ipc", "mount", "uts" ] } - * flags & set == set - * flags & (ipc | mount | ns) == (ipc | mount | ns) - * - * "field": { "not": [ "ipc", "mount", "uts" ] } - * !(flags & set) - * - * "field": { "ipc": false, "mount": true, "uts": false } - * flags & set == set - * !(flags & ipc) && (flags & mount) && !(flags & utc) - * - * "field": { "ipc" } - * flags == ipc - * - * INTMASK - * value = (target value & known values) - * - * INT, LONG, U32 - * "arg": { "in": [ 0, 1 ] } - * arg == 0 || arg == 1 - */ -- cgit v1.2.3