Add WFP listen hook simulation for sock_addr listen testing#306
Open
mikeagun wants to merge 3 commits into
Open
Add WFP listen hook simulation for sock_addr listen testing#306mikeagun wants to merge 3 commits into
mikeagun wants to merge 3 commits into
Conversation
Rename usersim listen hook test functions from sock_ops naming to cgroup_inet naming to match the sock_addr-based listen hook design: - usersim_fwp_sock_ops_listen_v4 -> usersim_fwp_cgroup_inet4_listen - usersim_fwp_sock_ops_listen_v6 -> usersim_fwp_cgroup_inet6_listen - test_sock_ops_listen_v4 -> test_cgroup_inet4_listen - test_sock_ops_listen_v6 -> test_cgroup_inet6_listen Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
10f9e5c to
40562a6
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add usersim_fwp_cgroup_inet4_listen and usersim_fwp_cgroup_inet6_listen to simulate WFP ALE_AUTH_LISTEN_V4/V6 layer classify calls. These enable unit testing of the
new cgroup/listen4 and cgroup/listen6 sock_addr attach types in ebpf-for-windows.
The functions populate FWPS_FIELD_ALE_AUTH_LISTEN_V4/V6 incoming values (local address, port, compartment ID, interface LUID, app ID) and invoke the registered WFP callout via test_callout.