aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-05-15 09:02:47 +0200
committerAlice Frosi <afrosi@redhat.com>2023-05-15 09:02:47 +0200
commit049bd1ca828da835f2903b88adcf9ce0bdacd6e4 (patch)
tree09bf603bf1909fd229a37048a1953897d2175ba4
parent46a3a54c0a0e1ce9d8f5705184e46386565d2319 (diff)
downloadseitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar.gz
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar.bz2
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar.lz
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar.xz
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.tar.zst
seitan-049bd1ca828da835f2903b88adcf9ce0bdacd6e4.zip
ops: copy call args from gluten
-rw-r--r--operations.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/operations.c b/operations.c
index 9fbf609..d404b87 100644
--- a/operations.c
+++ b/operations.c
@@ -99,6 +99,11 @@ static int prepare_arg_clone(const struct seccomp_notif *req, struct gluten *g,
if (gluten_read(NULL, g, &c->nr, op->nr, sizeof(c->nr)) == -1)
return -1;
+ for (i = 0; i < 6; i++)
+ if (gluten_read(NULL, g, &c->args[i], op->nr,
+ sizeof(c->args[i])) == -1)
+ return -1;
+
for (i = 0; i < sizeof(enum ns_type); i++) {
ns = &op->context.ns[i];
proc_ns_name(i, ns_name);