aboutgitcodelistschat:MatrixIRC
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test: fix test-error-checkAlice Frosi2023-07-144-109/+97
| | | | The error-check tests recompile and pass.
* test: fix filter testsAlice Frosi2023-07-042-45/+56
| | | | The filter tests recompile and pass.
* test: fix filter-build test and bugsAlice Frosi2023-07-034-73/+94
| | | | | | | | | | | | The tests for checking the filter build recompile and are successfull. Changes: - spotted a couple of bugs for adding the arguments in the filter - readded function `filter_flush_args` to flush_args; this is needed to distinguish when the arguments belong to the same block or are different entries to the same syscall - build the filter in a way that CMP_EQ corresponds to BPF_JEQ and we don't need to awkwardly negate the operations (still TODO for AND_EQ)
* treewide: Change to GPLv2, add LICENSES, missing headersStefano Brivio2023-06-0411-7/+25
| | | | | | As discussed with Alice -- 'reuse lint' passes now. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
* filter: fix filter build and adjust testsAlice Frosi2023-05-221-264/+234
| | | | | | | Changes: - fix initialization of size - addedfew comments - finish to fix the test_filter_build tests
* filter: adjust filter buildAlice Frosi2023-05-194-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 changesAlice Frosi2023-05-191-24/+30
|
* ops: fix op_cmp and testAlice Frosi2023-05-191-91/+64
|
* ops: fix op_call and testsAlice Frosi2023-05-194-132/+209
|
* ops: add op_nr and op_copyAlice Frosi2023-05-171-13/+73
| | | | | | | Add: - missing implementation for op_nr - op_copy to copy data - tests for op_nr and op_data
* filter: refactoring filterAlice Frosi2023-05-172-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_offsetAlice Frosi2023-05-112-31/+30
|
* Add missing license header to tests/unit/test_errors.cAlice Frosi2023-05-111-0/+5
|
* Clean-up error message and testAlice Frosi2023-05-113-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_cmpAlice Frosi2023-05-101-1/+30
| | | | Adding the offset limits checks and unit tests.
* Refactoring of gluten_read/writeAlice Frosi2023-05-102-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 limitsAlice Frosi2023-05-093-0/+130
| | | | | | Add bounds checking: - if offset is larger then the maximum per offset type - if memcpy is reading/writing inside gluten
* test: fix operationsAlice Frosi2023-05-085-274/+244
| | | | Adjust the tests after the refactoring and to use struct gluten_offset
* test: uncomment testAlice Frosi2023-04-211-1/+1
|
* test: test various values for op_cmp_typeAlice Frosi2023-04-211-8/+83
|
* tests: clean-up created fileAlice Frosi2023-04-212-1/+3
|
* operation: remove pid and idAlice Frosi2023-04-211-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 buildAlice Frosi2023-04-181-94/+101
|
* test: add test for and_neAlice Frosi2023-04-181-10/+38
|
* test: add unit test for and operationAlice Frosi2023-04-181-0/+66
|
* Add test for BPF filter comparison operationsAlice Frosi2023-04-141-28/+110
|
* Fix testsAlice Frosi2023-04-135-29/+35
|
* Refactor tests to use same struct arg as the filterAlice Frosi2023-04-126-43/+45
|
* Add other comparison operation for the BPF filterAlice Frosi2023-04-122-4/+11
|
* filter: define arg_cmp and arg_typeAlice Frosi2023-04-064-36/+40
|
* Refactor makefileAlice Frosi2023-04-061-12/+20
|
* Add support for 64 bits argumentsAlice Frosi2023-04-064-17/+101
|
* fix filter testAlice Frosi2023-04-032-85/+72
|
* filter: fix filterAlice Frosi2023-04-033-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 syscallsAlice Frosi2023-03-314-3/+122
|
* test: moving shareable function in a separate fileAlice Frosi2023-03-304-176/+238
|
* Create common function to install the BPF filterAlice Frosi2023-03-302-16/+5
|
* test: rename test-filter.c to test_filter_build.cAlice Frosi2023-03-302-4/+4
|
* test: fix filter orderAlice Frosi2023-03-291-43/+60
|
* test: fix cooker directoryAlice Frosi2023-03-291-1/+1
|
* Add license header to the integration testsAlice Frosi2023-03-241-0/+7
|
* tests: Adjust project directory and add license headersAlice Frosi2023-03-244-16/+64
|
* tests: add unit tests for op_resolvedfdAlice Frosi2023-03-151-1/+77
|
* tests: add test for op_cmpAlice Frosi2023-02-271-1/+63
|
* test: fix arguments and offsetsAlice Frosi2023-02-271-6/+7
|
* seitan: copy immediate args with op_copyAlice Frosi2023-02-271-3/+10
|
* tests: add test for op_copyAlice Frosi2023-02-231-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 targetAlice Frosi2023-02-231-12/+19
| | | | | Refactor the tests to pass the filtered syscall and setting the argument into the shared struct.
* test: fix check of a_blockAlice Frosi2023-02-231-1/+5
|
* tests: adjust do_operations signatureAlice Frosi2023-02-231-7/+7
| | | | Signed-off-by: Alice Frosi <afrosi@redhat.com>