diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-06-02 16:48:29 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-06-02 16:49:48 +0200 |
commit | 6455b9dff0554adc11e8dbe8027d134c8584bc5d (patch) | |
tree | 2c403f9e2cdb7e864ecea449f6fb7375ed5416e5 /cooker/example.hjson | |
parent | fb2a89cbfc5049d360bb734b4896946e9963e39a (diff) | |
download | seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.gz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.bz2 seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.lz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.xz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.zst seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.zip |
cooker, seitan: OP_FD
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'cooker/example.hjson')
-rw-r--r-- | cooker/example.hjson | 5 |
1 files changed, 2 insertions, 3 deletions
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" } } ] |