aboutgitcodelistschat:MatrixIRC
path: root/gluten.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-15 14:08:42 +0100
committerAlice Frosi <afrosi@redhat.com>2023-03-15 14:08:42 +0100
commita3d47a8356fd96f9c74a7cd3f58e1df850bb4364 (patch)
treec425d3e7d1a14ee4238501c914d3c320fd4c97b5 /gluten.h
parent0f4a78ff9e9fcff894044e15373d8348659cb4c3 (diff)
downloadseitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar.gz
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar.bz2
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar.lz
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar.xz
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.tar.zst
seitan-a3d47a8356fd96f9c74a7cd3f58e1df850bb4364.zip
seitan: add op_resolvedfd
The op_resolvedfd verifies that the fd points to a path. Signed-off-by: Alice Frosi <afrosi@redhat.com>
Diffstat (limited to 'gluten.h')
-rw-r--r--gluten.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gluten.h b/gluten.h
index 570d82a..8370cf5 100644
--- a/gluten.h
+++ b/gluten.h
@@ -53,6 +53,7 @@ enum op_type {
OP_COPY_ARGS,
OP_END,
OP_CMP,
+ OP_RESOLVEDFD,
};
enum value_type {
@@ -114,6 +115,13 @@ struct op_cmp {
unsigned int jmp;
};
+struct op_resolvedfd {
+ uint16_t fd_off;
+ uint16_t path_off;
+ size_t path_size;
+ unsigned int jmp;
+};
+
struct op {
enum op_type type;
union {
@@ -124,6 +132,7 @@ struct op {
struct op_inject inj;
struct op_copy_args copy;
struct op_cmp cmp;
+ struct op_resolvedfd resfd;
};
};
#endif /* GLUTEN_H */