Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Alan Jowett 0f753dea28 Merged PR 4147072: First version of changes to comply with new ebpf contract
First version of changes to comply with new ebpf contract

Note:
We can't use crt handle -> fd mapping until ebpfcore returns *real* handles.
2021-02-23 17:34:19 +00:00
Alan Jowett 20914bf459 Merged PR 4124049: Work around prevail encoding size into fd
Work around prevail encoding size into fd
2021-02-18 21:04:02 +00:00
Alan Jowett e51d34d287 Fix build break 'identifier' -> 'id' 2021-02-18 13:55:42 -07:00
Alan Jowett 3a73e0f548 Merged PR 4114187: Update code to match coding conventions
Update code to match coding conventions
2021-02-16 17:06:14 +00:00
Alan Jowett 93d9783890 Merged PR 4112977: First draft of kernel support for maps
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.
2021-02-13 19:20:49 +00:00
Alan Jowett 78438fe793 Merged PR 4108249: Add support for maps to EbpfApi
Add support for maps to EbpfApi
2021-02-13 02:14:55 +00:00
Dave Thaler c3879228d1 Merged PR 4112450: Add prereqs to readme file
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>
2021-02-13 01:15:01 +00:00
Dave Thaler 6f2b089163 Add prereqs to readme file
Rename README_build to README
Add standard LICENSE file

Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-02-12 16:18:45 -08:00
Alan Jowett 97ca1a3ac4 Add public nuget source 2021-02-12 10:22:56 -07:00
Alan Jowett 24c4ebe304 Fix build break 2021-02-11 13:00:49 -07:00
Alan Jowett c70e795100 Merged PR 4105349: Make release build work
Make release build work
2021-02-11 19:49:09 +00:00
Alan Jowett 99495d990a Merged PR 4102701: Update script & switch to /Mtdd
Update script & switch to /Mtdd
2021-02-11 16:15:57 +00:00
Alan Jowett 1a3ff0129b Merged PR 4101781: Connect detach from ioctl -> code
Connect detach from ioctl -> code
2021-02-11 02:33:41 +00:00
Alan Jowett 267668f5f6 Merged PR 4099366: Setup solution to build all files for demo
Setup solution to build all files for demo
2021-02-10 21:06:04 +00:00
Poorna Gaddehosur 319d42b031 Merged PR 4097207: integrate driver with verifier and jitter 2021-02-10 03:52:05 +00:00
Poorna Gaddehosur f3ff7d06c3 Merged PR 4090115: modifies driver to receive opcode based commands from usermode for load/unload/attach/detach
- 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
2021-02-09 01:16:52 +00:00
Alan Jowett 049b1c3e3f Merged PR 4085330: Fix up netsh to compile against updated prevail interface
Fix up netsh to compile against updated prevail interface
2021-02-09 00:14:22 +00:00
Alan Jowett 100f4445c3 Merged PR 4083483: Add tests for EbpfApi
Add tests for EbpfApi
2021-02-07 21:07:50 +00:00
Alan Jowett ec1eba0da5 Merged PR 4081118: Add first draft of code invoke ioctl interface
Add first draft of code invoke ioctl interface
2021-02-06 19:39:57 +00:00
Alan Jowett c3dd0ae742 Merged PR 4079802: Add src/ebpf/libs/EbpfJitterDemoLib/
Add src/ebpf/libs/EbpfJitterDemoLib/
2021-02-05 18:56:12 +00:00
Alan Jowett a661a771f8 Merged PR 4035461: Call enclave from test code
Call enclave from test code
2021-01-27 18:40:55 +00:00
Alan Jowett d645841cd2 Merged PR 4014762: Initial code to setup secure channel to kernel
Initial code to setup secure channel to kernel
2021-01-27 00:13:02 +00:00
Dave Thaler 94dfa29ada Merged PR 4009551: Add verifier-in-an-enclave demo
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
2021-01-22 01:23:53 +00:00
Dave Thaler 73df4c2bb1 Add verifier-in-an-enclave demo
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>
2021-01-21 17:06:26 -08:00
Dave Thaler 23f3078c09 Merged PR 3996339: Add parser stubs for program commands
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
2021-01-22 00:24:22 +00:00
Alan Jowett 0436e72a53 Merged PR 4008117: Add all members of team as owners of the repo
Add all members of team as owners of the repo
2021-01-21 20:18:06 +00:00
Alan Jowett df26662865 Merged PR 4002430: Add skeleton enclave + host code
Add skeleton enclave + host code
2021-01-21 20:13:48 +00:00
Poorna Gaddehosur d2368782ea Merged PR 3998390: Elfhelper tool
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
2021-01-20 01:34:06 +00:00
Poorna Gaddehosur c98a14de04 Merged PR 3998709: pass in code from um via ioctl and execute in kernel
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
2021-01-20 01:33:41 +00:00
Dave Thaler 51f450a58e Add parser stubs for program commands
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-19 10:33:27 -08:00
Dave Thaler 13c3d849c4 Merged PR 3989936: Initial netsh helper
Related work items: #9115665
2021-01-17 01:10:46 +00:00
Poorna Gaddehosur 94dee69ae0 Merged PR 3989969: rename driver solution to be in ebpf\core
rename driver solution to be in ebpf\core

Related work items: #9115665
2021-01-17 00:24:16 +00:00
Dave Thaler e961e0639e Add verbose stats
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 20:16:29 -08:00
Dave Thaler 340419de51 Add "show verification" command
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 19:47:58 -08:00
Dave Thaler f41ca3775d Added "show sections" and "show disassembly" commands
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 19:28:40 -08:00
Dave Thaler 1a3539874b Add ebpf-verifier as submodule
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 17:22:07 -08:00
Dave Thaler 03f3475897 Add help text
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 17:07:00 -08:00
Dave Thaler e388319747 Initial stubs
Signed-off-by: Dave Thaler <dthaler@ntdev.microsoft.com>
2021-01-15 16:04:50 -08:00
Alan Jowett 6e308f7808 Merged PR 3981140: Cleanup unused demo files 2021-01-14 22:12:54 +00:00
Poorna Gaddehosur 5848faf2c9 Merged PR 3981967: Rename driver
Update the driver name to reflect the architecture discussions

Related work items: #9115665
2021-01-14 20:48:48 +00:00
PIE Easy Start a636139432 Merged PR 3976956: Adding OneBranch pipeline YAML config file for EdgeOS-CoreNetworking-WindowsEbf-PullRequest
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).
2021-01-14 17:25:35 +00:00
Poorna Gaddehosur db7e867027 Merged PR 3973729: adding initial WDF driver that registers at l2 hook via WFP and exposes an io...
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
2021-01-13 18:02:51 +00:00
PIE Easy Start 6c3f01d9fe Merged PR 3972977: Adding OneBranch pipeline YAML config file for EdgeOS-CoreNetworking-WindowsEbf-Official
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).

PR URL: https://msazure.visualstudio.com/DefaultCollection/One/_git/EdgeOS-CoreNetworking-WindowsEbf/pullrequest/3972977

Related work items: #9114636
2021-01-13 16:03:34 +00:00
PIE Easy Start ce5e17b48c Updating owners.txt with ServiceTree admins 2021-01-12 22:48:46 +00:00
Emma Smith 92e48fcbf2 Merged PR 11749: Updating packages to resolve CG issues 2020-12-09 19:20:20 +00:00
Emma Smith c46fd142fa exit 2020-12-08 16:55:54 -08:00
Emma Smith c93b297fbf exit 2020-12-08 16:32:52 -08:00
Emma Smith 2e95fd30a7 no fail 2020-12-08 16:27:46 -08:00
Emma Smith 9a2b150469 fix build 2020-12-08 16:02:42 -08:00
Emma Smith 3980281408 npm update 2020-12-08 15:21:46 -08:00