kubernetes/vendor/github.com/cilium/ebpf
Kir Kolyshkin f3cdfc488e vendor: bump runc to rc95
runc rc95 contains a fix for CVE-2021-30465.

runc rc94 provides fixes and improvements.

One notable change is cgroup manager's Set now accept Resources rather
than Cgroup (see https://github.com/opencontainers/runc/pull/2906).
Modify the code accordingly.

Also update runc dependencies (as hinted by hack/lint-depdendencies.sh):

        github.com/cilium/ebpf v0.5.0
        github.com/containerd/console v1.0.2
        github.com/coreos/go-systemd/v22 v22.3.1
        github.com/godbus/dbus/v5 v5.0.4
        github.com/moby/sys/mountinfo v0.4.1
        golang.org/x/sys v0.0.0-20210426230700-d19ff857e887
        github.com/google/go-cmp v0.5.4
        github.com/kr/pretty v0.2.1
        github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-19 23:51:59 -07:00
..
asm vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
internal vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
link vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
.clang-format vendor: cadvisor v0.39.0 2021-03-08 22:10:29 -08:00
.gitignore vendor: cadvisor v0.39.0 2021-03-08 22:10:29 -08:00
.golangci.yaml vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
ARCHITECTURE.md vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
CODE_OF_CONDUCT.md
collection.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
CONTRIBUTING.md vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
doc.go vendor: cadvisor v0.39.0 2021-03-08 22:10:29 -08:00
elf_reader_fuzz.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
elf_reader.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
go.mod vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
go.sum vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
info.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
LICENSE
linker.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
Makefile vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
map.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
marshalers.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
prog.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
README.md vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
run-tests.sh vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
syscalls.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00
types_string.go vendor: cadvisor v0.39.0 2021-03-08 22:10:29 -08:00
types.go vendor: bump runc to rc95 2021-05-19 23:51:59 -07:00

eBPF

PkgGoDev

eBPF is a pure Go library that provides utilities for loading, compiling, and debugging eBPF programs. It has minimal external dependencies and is intended to be used in long running processes.

  • asm contains a basic assembler
  • link allows attaching eBPF to various hooks
  • perf allows reading from a PERF_EVENT_ARRAY
  • cmd/bpf2go allows compiling and embedding eBPF programs in Go code

The library is maintained by Cloudflare and Cilium. Feel free to join the #libbpf-go channel on Slack.

Current status

The package is production ready, but the API is explicitly unstable right now. Expect to update your code if you want to follow along.

Getting Started

A small collection of Go and eBPF programs that serve as examples for building your own tools can be found under examples/.

Contributions are highly encouraged, as they highlight certain use cases of eBPF and the library, and help shape the future of the project.

Requirements

  • A version of Go that is supported by upstream
  • Linux 4.9, 4.19 or 5.4 (versions in-between should work, but are not tested)

Useful resources

Regenerating Testdata

Run make in the root of this repository to rebuild testdata in all subpackages. This requires Docker, as it relies on a standardized build environment to keep the build output stable.

The toolchain image build files are kept in testdata/docker/.

License

MIT