Skip to content

Commit

Permalink
selftests/bpf: Test bpf_{get,set}_retval behavior with cgroup/sockopt
Browse files Browse the repository at this point in the history
The tests checks how different ways of interacting with the helpers
(getting retval, setting EUNATCH, EISCONN, and legacy reject
returning 0 without setting retval), produce different results in
both the setsockopt syscall and the retval returned by the helper.
A few more tests verify the interaction between the retval of the
helper and the retval in getsockopt context.

Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
  • Loading branch information
zhuyifei1999 authored and Nobody committed Jan 10, 2022
1 parent 52d9c66 commit 2a89330
Show file tree
Hide file tree
Showing 3 changed files with 578 additions and 0 deletions.

0 comments on commit 2a89330

Please sign in to comment.