Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | treewide: Change to GPLv2, add LICENSES, missing headers | Stefano Brivio | 2023-06-04 | 8 | -6/+16 |
| | | | | | | As discussed with Alice -- 'reuse lint' passes now. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> | ||||
* | filter: fix filter build and adjust tests | Alice Frosi | 2023-05-22 | 1 | -264/+234 |
| | | | | | | | Changes: - fix initialization of size - addedfew comments - finish to fix the test_filter_build tests | ||||
* | filter: adjust filter build | Alice Frosi | 2023-05-19 | 4 | -311/+312 |
| | | | | | | | Add filter_flush_args() to flush the arguments when finish to add the syscall arguments. Fixed test compilation after refactoring. | ||||
* | test: fix compilation and adjust changes | Alice Frosi | 2023-05-19 | 1 | -24/+30 |
| | |||||
* | ops: fix op_cmp and test | Alice Frosi | 2023-05-19 | 1 | -91/+64 |
| | |||||
* | ops: fix op_call and tests | Alice Frosi | 2023-05-19 | 4 | -132/+209 |
| | |||||
* | ops: add op_nr and op_copy | Alice Frosi | 2023-05-17 | 1 | -13/+73 |
| | | | | | | | Add: - missing implementation for op_nr - op_copy to copy data - tests for op_nr and op_data | ||||
* | filter: refactoring filter | Alice Frosi | 2023-05-17 | 2 | -176/+128 |
| | | | | | | | | | | | Attempt to simplify the filter build: - storing all the bpf_args in a common array and saving the index of each entry in filter_input - added new flag to filter_add_arg for append an argument to an entry - split large loop in filter_build in multiple functions - adjust and refactor tests/units/test_filter The tests in test_filter_build.c still need to be fixed | ||||
* | Adjust op_call with gluten_offset | Alice Frosi | 2023-05-11 | 2 | -31/+30 |
| | |||||
* | Add missing license header to tests/unit/test_errors.c | Alice Frosi | 2023-05-11 | 1 | -0/+5 |
| | |||||
* | Clean-up error message and test | Alice Frosi | 2023-05-11 | 3 | -1/+74 |
| | | | | | | | | Refactoring error messages: - standardize error messages and functions - return on error instead of exit - test error when target doesn't exist - include ability to capture stderr and stdout in the tests | ||||
* | seitan: add check for limits to op_cmp | Alice Frosi | 2023-05-10 | 1 | -1/+30 |
| | | | | Adding the offset limits checks and unit tests. | ||||
* | Refactoring of gluten_read/write | Alice Frosi | 2023-05-10 | 2 | -22/+32 |
| | | | | | | | | 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 | 3 | -0/+130 |
| | | | | | | Add bounds checking: - if offset is larger then the maximum per offset type - if memcpy is reading/writing inside gluten | ||||
* | test: fix operations | Alice Frosi | 2023-05-08 | 5 | -274/+244 |
| | | | | Adjust the tests after the refactoring and to use struct gluten_offset | ||||
* | test: uncomment test | Alice Frosi | 2023-04-21 | 1 | -1/+1 |
| | |||||
* | test: test various values for op_cmp_type | Alice Frosi | 2023-04-21 | 1 | -8/+83 |
| | |||||
* | tests: clean-up created file | Alice Frosi | 2023-04-21 | 2 | -1/+3 |
| | |||||
* | operation: remove pid and id | Alice Frosi | 2023-04-21 | 1 | -23/+23 |
| | | | | | Pid and id are reduandant fields as the information are already included in the seccomp request | ||||
* | test: fix test filter with the new filter build | Alice Frosi | 2023-04-18 | 1 | -94/+101 |
| | |||||
* | test: add test for and_ne | Alice Frosi | 2023-04-18 | 1 | -10/+38 |
| | |||||
* | test: add unit test for and operation | Alice Frosi | 2023-04-18 | 1 | -0/+66 |
| | |||||
* | Add test for BPF filter comparison operations | Alice Frosi | 2023-04-14 | 1 | -28/+110 |
| | |||||
* | Fix tests | Alice Frosi | 2023-04-13 | 5 | -29/+35 |
| | |||||
* | Refactor tests to use same struct arg as the filter | Alice Frosi | 2023-04-12 | 6 | -43/+45 |
| | |||||
* | Add other comparison operation for the BPF filter | Alice Frosi | 2023-04-12 | 2 | -4/+11 |
| | |||||
* | filter: define arg_cmp and arg_type | Alice Frosi | 2023-04-06 | 4 | -36/+40 |
| | |||||
* | Refactor makefile | Alice Frosi | 2023-04-06 | 1 | -12/+20 |
| | |||||
* | Add support for 64 bits arguments | Alice Frosi | 2023-04-06 | 4 | -17/+101 |
| | |||||
* | fix filter test | Alice Frosi | 2023-04-03 | 2 | -85/+72 |
| | |||||
* | filter: fix filter | Alice Frosi | 2023-04-03 | 3 | -22/+68 |
| | | | | | An additional notification is need either when we jump from an instruction without arguments then at the end of the argument checks. | ||||
* | tests: add tests for filtering the syscalls | Alice Frosi | 2023-03-31 | 4 | -3/+122 |
| | |||||
* | test: moving shareable function in a separate file | Alice Frosi | 2023-03-30 | 4 | -176/+238 |
| | |||||
* | Create common function to install the BPF filter | Alice Frosi | 2023-03-30 | 2 | -16/+5 |
| | |||||
* | test: rename test-filter.c to test_filter_build.c | Alice Frosi | 2023-03-30 | 2 | -4/+4 |
| | |||||
* | test: fix filter order | Alice Frosi | 2023-03-29 | 1 | -43/+60 |
| | |||||
* | test: fix cooker directory | Alice Frosi | 2023-03-29 | 1 | -1/+1 |
| | |||||
* | tests: Adjust project directory and add license headers | Alice Frosi | 2023-03-24 | 4 | -16/+64 |
| | |||||
* | tests: add unit tests for op_resolvedfd | Alice Frosi | 2023-03-15 | 1 | -1/+77 |
| | |||||
* | tests: add test for op_cmp | Alice Frosi | 2023-02-27 | 1 | -1/+63 |
| | |||||
* | test: fix arguments and offsets | Alice Frosi | 2023-02-27 | 1 | -6/+7 |
| | |||||
* | seitan: copy immediate args with op_copy | Alice Frosi | 2023-02-27 | 1 | -3/+10 |
| | |||||
* | tests: add test for op_copy | Alice Frosi | 2023-02-23 | 1 | -0/+64 |
| | | | | | | The target process tries to perform a connect syscall and we need to check that the struct sockaddr_un is correctly copied from the memory of the target process | ||||
* | tests: generalize the syscall of the target | Alice Frosi | 2023-02-23 | 1 | -12/+19 |
| | | | | | Refactor the tests to pass the filtered syscall and setting the argument into the shared struct. | ||||
* | test: fix check of a_block | Alice Frosi | 2023-02-23 | 1 | -1/+5 |
| | |||||
* | tests: adjust do_operations signature | Alice Frosi | 2023-02-23 | 1 | -7/+7 |
| | | | | Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | Rename actions to operations | Alice Frosi | 2023-02-22 | 3 | -70/+70 |
| | | | | | Replace all the action related names to operations to make them more generic. | ||||
* | fix formatting | Alice Frosi | 2023-02-22 | 2 | -101/+108 |
| | |||||
* | tests: add test for act_inject with the references | Alice Frosi | 2023-02-21 | 1 | -8/+35 |
| | |||||
* | actions: add reference for the fds | Alice Frosi | 2023-02-21 | 1 | -2/+4 |
| |