aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-05 14:52:36 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-05 14:52:36 +0200
commite1765e58820dc79749b82e6de847293eea2ca7a9 (patch)
treeaab3a7729f9fdea44cfcb541c723d09a9acfbaa3
parent2bd770154d4960c2c594f3380caf320c81e1cbcc (diff)
downloadseitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar.gz
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar.bz2
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar.lz
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar.xz
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.tar.zst
seitan-e1765e58820dc79749b82e6de847293eea2ca7a9.zip
seitan: fix jmp in op_nr
-rw-r--r--operations.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/operations.c b/operations.c
index fc27270..734bc60 100644
--- a/operations.c
+++ b/operations.c
@@ -354,7 +354,6 @@ int op_cmp(const struct seccomp_notif *req, int notifier, struct gluten *g,
const void *py = gluten_ptr(&req->data, g, op->y);
enum op_cmp_type cmp = op->cmp;
int res;
- int jmp;
(void)notifier;
@@ -403,20 +402,17 @@ int op_nr(const struct seccomp_notif *req, int notifier, struct gluten *g,
struct op_nr *op)
{
long nr;
- int jmp;
(void)notifier;
if (gluten_read(NULL, g, &nr, op->nr, sizeof(nr)) == -1)
return -1;
- if (gluten_read(NULL, g, &jmp, op->no_match, sizeof(jmp)) == -1)
- return -1;
debug(" op_nr: checking syscall=%ld", nr);
if (nr == req->data.nr)
return 0;
- debug(" op_nr: jmp to instr %d", jmp);
- return jmp;
+ debug(" op_nr: jmp to instr %d", op->no_match.offset);
+ return op->no_match.offset;
}
int op_copy(const struct seccomp_notif *req, int notifier, struct gluten *g,