diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-06-01 11:04:38 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-06-01 11:10:27 +0200 |
commit | 1644bbec6161ec971a2ba3c213ce285b995cac22 (patch) | |
tree | 75974577237f8ae1a0989755be0a953c631f794e /cooker/example.hjson | |
parent | bb47d77d316137c9deddd46135b22dc144ae1ea9 (diff) | |
download | seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.gz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.bz2 seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.lz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.xz seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.tar.zst seitan-1644bbec6161ec971a2ba3c213ce285b995cac22.zip |
cooker: OP_CALL and OP_COPY stuff
...mostly.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'cooker/example.hjson')
-rw-r--r-- | cooker/example.hjson | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cooker/example.hjson b/cooker/example.hjson index 8c862da..4c656f7 100644 --- a/cooker/example.hjson +++ b/cooker/example.hjson @@ -3,7 +3,10 @@ "match": [ /* qemu-pr-helper and similar */ { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "fd" } } } ], - "call": { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "ret": "y" } }, + "call": [ + { "socket": { "family": "unix", "type": "stream", "flags": 0, "protocol": 0 }, "ret": "new_fd" }, + { "connect": { "fd": { "tag": { "get": "new_fd" } }, "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" } }, "ret": "y" } + ], "inject": { "what": "fd", "new": { "tag": "y" }, "old": { "tag": "fd" }, "return": 0 } }, { @@ -31,7 +34,7 @@ { "mknod": { "path": { "tag": "path" }, "mode": "c", "major": 1, "minor": { "in": [ 3, 5, 7, 8, 9 ], "tag": "minor" } } } ], "context": { "userns": "init", "mountns": "caller" }, - "call": { "mknod": { "path": { "tag": "path" }, "mode": "c", "major": 1, "minor": { "tag": "minor" }, "ret": "x" } }, + "call": { "mknod": { "path": { "tag": { "get": "path" } }, "mode": "c", "major": 1, "minor": { "tag": { "get": "minor" } } }, "ret": "x" }, "inject": { "what": "fd", "new": { "tag": "x" } }, "return": { "tag": "x" } } |