Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adjust op_call with gluten_offset | Alice Frosi | 2023-05-11 | 1 | -13/+11 |
| | |||||
* | gluten: remove unused enum value_type | Alice Frosi | 2023-05-11 | 1 | -5/+0 |
| | |||||
* | ops: check for SECCOMP_DATA | Alice Frosi | 2023-05-10 | 1 | -0/+3 |
| | | | | Add check if offset type is SECCOMP_DATA and the seccomp request is set. | ||||
* | Refactoring of gluten_read/write | Alice Frosi | 2023-05-10 | 1 | -26/+34 |
| | | | | | | | | Refactor includes: - use static inline instead of macro - return -1 if there is an error and don't exit - eval return 0 or -1 - adjust code and tests | ||||
* | gluten: check limits | Alice Frosi | 2023-05-09 | 1 | -3/+45 |
| | | | | | | Add bounds checking: - if offset is larger then the maximum per offset type - if memcpy is reading/writing inside gluten | ||||
* | seitan: refactor operations | Alice Frosi | 2023-05-08 | 1 | -25/+21 |
| | | | | | | | | | | | Refactoring: - rename do_operations to eval and reduce the number of arguments - create macro HANDLE_OP - rename all functions with op_*(operation name) - exposed the op_* functions in the operations.h Fixes: - use pread for op_load | ||||
* | cooker updates spilling all over the place | Stefano Brivio | 2023-05-02 | 1 | -30/+127 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only tangentially related: - make seitan C99 again, so that I can build cooker without warnings - make Makefiles make use of the usual conventions about assigning directory paths in variables, drop numbers.h as requirement for cooker and make it convenient to run stand-alone Makefiles - fix up nr_syscalls.sh to be POSIX, otherwise it will give syntax errors on my system - define a single, common way to refer to offsets in gluten, and functions to use those offsets in a safe way. Immediates are gone: cooker will write any bit of "data" to the read-only section - call const what has to be const - define on-disk layout for gluten - add OP_NR (to check syscall numbers), rename OP_COPY_ARGS to OP_LOAD (it loads _selected_ stuff from arguments) As for cooker itself: - drop ARG_ and arg_ prefixes from struct names, and similar - add/rework functions to build OP_NR, OP_LOAD, OP_CMP, and to write constant data to gluten - add parsing for "compound" arguments, but that's not completely hooked into evaluation for numeric arguments yet Signed-off-by: Stefano Brivio <sbrivio@redhat.com> | ||||
* | Add op_cmp type | Alice Frosi | 2023-04-21 | 1 | -0/+10 |
| | |||||
* | Re-arrange repository structure | Alice Frosi | 2023-03-24 | 1 | -0/+138 |