Open Alan-Jowett opened 3 years ago
@dthaler need to paste in here the list of program types covered by this issue
It's unclear what the equivalent program types are for Linux.
Reached out on Cilium slack channel to see if domain experts know of similar Linux hook.
Per bpf.h
attach types are: BPF_CGROUP_INET4_BIND, BPF_CGROUP_INET6_BIND, BPF_CGROUP_INET4_POST_BIND, BPF_CGROUP_INET6_POST_BIND,
And I believe the program type is: BPF_PROG_TYPE_CGROUP_SOCK
Programs of this type are attached using CGroups.
Hooking bind operations is a relatively platform-agnostic behavior. eBFP-for-Windows bind hook is currently significantly different from the one exposed by Linux.
To allow re-use of eBPF programs between Linux and Windows it would make sense to modify the signature of the bind hook to match that of Linux.