kubearmor / libbpf Goto Github PK
View Code? Open in Web Editor NEWKubeArmor eBPF Go library based on Linux libbpf API
License: Apache License 2.0
KubeArmor eBPF Go library based on Linux libbpf API
License: Apache License 2.0
The current implementation depends entirely on libbpf.BPFMap.GetModule()
. To work around this problem, it would be necessary to keep a KABPFObject
reference inside KABPFMap
as well.
There are some types of links that will be needed soon :
We need to support detach/unloading of specific ebpf programs links without to close the object (and consequently its other relations).
KABPFMap.LookupElement()
hasn't err
validation.
Lines 192 to 197 in 00032b2
E.g.:
Lines 80 to 84 in 452bd30
The methods must to return nil pointers when error and only fill the structures when err is nil. We cannot just rely on the return of the underlying library.
To initialize ring buffer we will need a wrapper function. This could be something like InitRingBuf(), used by libbpfgo (https://github.com/aquasecurity/libbpfgo/blob/main/selftest/ringbuffers/main.go#L60)
Implement of the following wrapper functions is currently required to attach any ebpf program:
How to guarantee that the consumer will easily (and correctly) read from and write data to maps?
One needs to satisfy an interface (KABPFMapElement) to make use of the element management methods. Thus, the kubearmor/libbpf could easily get the right Key and Value pointers. It would also enable updating Value automatically on a successful LookupElement()
call.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.