Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | actions: change pointer to offset | Alice Frosi | 2023-02-21 | 1 | -17/+5 |
| | |||||
* | tests: add act_call and saving return value | Alice Frosi | 2023-02-21 | 1 | -0/+22 |
| | |||||
* | tests: add test-action-call when running make test-unit | Alice Frosi | 2023-02-21 | 1 | -2/+2 |
| | |||||
* | test: add test for act_call | Alice Frosi | 2023-02-21 | 1 | -1/+23 |
| | |||||
* | test: add ignore_ret for checking test result | Alice Frosi | 2023-02-21 | 1 | -7/+9 |
| | |||||
* | actions: add data section | Alice Frosi | 2023-02-21 | 1 | -6/+6 |
| | |||||
* | tests: remove unused variables | Alice Frosi | 2023-02-21 | 1 | -7/+2 |
| | |||||
* | tests: test reference for a_return | Alice Frosi | 2023-02-16 | 1 | -1/+33 |
| | | | | Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | tests: fix the suite with the wrong test | Alice Frosi | 2023-02-16 | 1 | -1/+1 |
| | |||||
* | tests: separate every action in its own test case | Alice Frosi | 2023-02-16 | 1 | -18/+33 |
| | | | | | | Separating every action is in a test case enable filtering using check env variable. Like: sudo -E CK_RUN_CASE="a_inject_a" tests/unit/test-actions | ||||
* | tests: add tests for inject actions | Alice Frosi | 2023-02-16 | 1 | -11/+89 |
| | | | | | | | | The inject actions install a fd into the target. The tests for those actions create a temporary file and install the file descriptor into the target, and check for the existance of the new fd. Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | test: interrupt test on target process exit | Alice Frosi | 2023-02-16 | 1 | -0/+13 |
| | | | | | | | Catch if the target process has exited due to an error and interrupt the tests. Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | Unmap at struct on teardown if set | Alice Frosi | 2023-02-15 | 1 | -1/+7 |
| | | | | Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | Add test actions | Alice Frosi | 2023-02-15 | 2 | -1/+229 |
| | | | | | | | | | Unit test for the action return, block and continue. The unit test installs a seccomp filter into the target for filter the getpid syscalls. Based on the action, the test checks the result of the syscall in the target to validate the correctness of the actions. Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | test: add unit test for act call | Alice Frosi | 2023-02-15 | 2 | -1/+231 |
| | | | | | | | | | Tests: - getppid syscall - read syscall without context - opena and read syscalls with a mount namespace Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | Add unit tests for the BPF filter generation | Alice Frosi | 2022-12-21 | 2 | -0/+379 |
The test-filter verifies that the create_bfp_program builds the filter correctly. The test suite includes the tests for checking a filter with: * a single instruction * a single instruction with arguments * 2 instructions * multiple instructions * multiple instructions with arguments * multiple instructions with multiple instance of the same instruction Signed-off-by: Alice Frosi <afrosi@redhat.com> |