From 6455b9dff0554adc11e8dbe8027d134c8584bc5d Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 2 Jun 2023 16:48:29 +0200 Subject: cooker, seitan: OP_FD Signed-off-by: Stefano Brivio --- cooker/example.hjson | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cooker/example.hjson') diff --git a/cooker/example.hjson b/cooker/example.hjson index 7fec039..f445418 100644 --- a/cooker/example.hjson +++ b/cooker/example.hjson @@ -1,13 +1,13 @@ [ { "match": [ /* qemu-pr-helper and similar */ - { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "fd" } } } + { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "orig_fd" } } } ], "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 } + "fd": { "src": { "tag": "new_fd" }, "new": { "tag": "orig_fd" }, "return": true, "close_on_exec": false } }, { "match": [ /* qemu creates a tap interface */ @@ -38,7 +38,6 @@ "ret": "x", "context": { "user": "init", "mnt": "caller" } }, - "inject": { "what": "fd", "new": { "tag": "x" } }, "return": { "tag": "x" } } ] -- cgit v1.2.3