The Wayback Machine - https://web.archive.org/web/20211201062819/https://github.com/topics/ebpf
Skip to content
#

ebpf

Here are 241 public repositories matching this topic...

martinvonwittich
martinvonwittich commented Aug 25, 2021

Is your feature request related to a problem? Please describe.

I fiddled around with bpftrace to write internal documentation for my colleagues on how to use it. I chose tracepoint:syscalls:sys_enter_mkdir as a suitable tracepoint for a simple demo, and wrote this code:

bpftrace -e 'tracepoint:syscalls:sys_enter_mkdir { printf("mkdir %s %o\n", str(args->pathname), args->mode); }
yanivagman
yanivagman commented Jun 5, 2021

We currently only check for CAP_SYS_ADMIN when running Tracee (https://github.com/aquasecurity/tracee/blob/main/tracee-ebpf/main.go#L885), which was correct for old kernels.
For newer kernels, CAP_SYS_ADMIN was split into combination of 3 other capabilities:
CAP_BPF, CAP_PERFMON and CAP_NET_ADMIN as described in https://lwn.net/Articles/820560/, and https://lwn.net/Articles/822362/
Update check

p-e-w
p-e-w commented May 23, 2021

It appears that the RedBPF toolchain imposes currently undocumented restrictions on map value types that go beyond those expressed by the generic constraints:

  • All variants of an enum must have the same size in memory.
  • Struct fields are (mostly?) required to be aligned to multiples of 32 bits, though sometimes 64-bit alignment is required, and some structs don't work at all despite their fi
oneiro-naut
oneiro-naut commented Nov 20, 2021

Feature Request

Short Description
Every platform has a different kernel configuration and this can cause eBPF code compilation to fail at times. If that happens KubeArmor will not run on that platform. An example would be #503. Fortunately in most of the scenarios the configurations can be such that portions of BPF code can be selectively compiled using #ifdef directives while unsuppo

Improve this page

Add a description, image, and links to the ebpf topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ebpf topic, visit your repo's landing page and select "manage topics."

Learn more