aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-14 14:06:10 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-14 14:06:10 +0200
commitc1b8d9ca93ba2147202ae995f67f3752ff6eafcb (patch)
tree06028a2348325da7f6a88104dc7108b5f5f7a592
parent54bca55ae5212002f8b5178f3d427cb4f54be233 (diff)
downloadseitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar.gz
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar.bz2
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar.lz
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar.xz
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.tar.zst
seitan-c1b8d9ca93ba2147202ae995f67f3752ff6eafcb.zip
demo: update demo
-rw-r--r--demo/connect.hjson10
-rw-r--r--demo/mknod.hjson2
2 files changed, 9 insertions, 3 deletions
diff --git a/demo/connect.hjson b/demo/connect.hjson
index 3bf0747..de4c119 100644
--- a/demo/connect.hjson
+++ b/demo/connect.hjson
@@ -1,7 +1,7 @@
[
- { /* connect to another path (/var/run/pr-helper.sock -> /tmp/demo.sock) */
+ { /* connect to another path (/cool.sock -> /tmp/demo.sock) */
"match": [
- { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "fd" } } }
+ { "connect": { "addr": { "family": "unix", "path": "/cool.sock" }, "fd": { "tag": "fd" } } }
],
"call": [
{ "socket": { "family": "unix", "type": "stream", "flags": 0, "protocol": 0 }, "ret": "new_fd" },
@@ -21,5 +21,11 @@
{ "connect": { "addr": { "family": "unix", "path": "/error.sock" } } }
],
"return": { "value": 0, "error": -1 }
+ },
+ { /* Continue all the other connect syscall */
+ "match": [
+ { "connect": {} }
+ ],
+ "return": { "continue": true }
}
]
diff --git a/demo/mknod.hjson b/demo/mknod.hjson
index 7055aee..40b5b8b 100644
--- a/demo/mknod.hjson
+++ b/demo/mknod.hjson
@@ -28,6 +28,6 @@
},
"context": { "mnt": "caller" }
},
- "return": { "value": 0 }
+ "return": { "value": 0, "error": 0 }
}
]