You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a selftest that ensures that modify_return tracing programs
cannot be attached to freplace programs. The security_ prefix is added to
the freplace program because that would otherwise let it pass the check for
modify_return.
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
---
.../selftests/bpf/prog_tests/fexit_bpf2bpf.c | 68 ++++++++++++++++++++
.../selftests/bpf/progs/fmod_ret_freplace.c | 14 ++++
.../selftests/bpf/progs/freplace_get_constant.c | 2 -
3 files changed, 83 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/bpf/progs/fmod_ret_freplace.c
0 commit comments