First draft of kernel support for maps
1) Refactored all EbpfCore related code into ebpf_core.*
2) Add tests for all EbpfCore functionality
3) Added support for array maps.
Rename README_build to README
Add prereqs to readme file (the rest of the file is unchanged, other than the rename)
Add standard LICENSE file
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
- adds support to receive opcode based commands from usermode for load/unload/attach/detach
- parses layerdata from wfp classify
- passes in xdp_md like context to usermode code from the classify context
- modified test tool to test these changes
- adds a droppacket.c code with instructions to illustrate xdp and ctx based evaluation for dosp.
Related work items: #9115665
This POC proves the Prevail verifier can run in an enclave.
Note that this POC also does the ELF parser in an enclave too,
just to prove that the entire Prevail code can run in an enclave,
even though we don't want to do ELF parsing in an enclave.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
Related work items: #9115665
This POC proves the Prevail verifier can run in an enclave.
Note that this POC also does the ELF parser in an enclave too,
just to prove that the entire Prevail code can run in an enclave,
even though we don't want to do ELF parsing in an enclave.
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
Still don't have an API to call, but add in parser logic for command arguments.
(And fix ordering of tags where needed, since required tags have to come before optional ones.)
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
Related work items: #9115665
Code is organized such that it points to the elf headers from the ebpf-verifier submodule. It uses non gpl contructs to grab a vector of ebpf instructions given a file path for an elf file.
Related work items: #9115665
pass in code from um via ioctl and execute in kernel.
Basic version to demonstrate that we can push code from um into kernel and get it to run there, all using public APIs.
Related work items: #9115665
Generate OneBranch Pipeline YAML config files. This pull request is initially auto-generated by Easy Start, for more details, please visit our [wiki](https://aka.ms/easystart).
adding initial WDF driver that registers at l2 hook via WFP and exposes an ioctl surface for user mode program to talk to; also adding a test app to call into the ioctl
Task 31281363: Placeholder driver for ebpf.sys
Related work items: #9115665