libbpf: add compat helpers for libbpf down to 0.1.0
authorDominique Martinet <asmadeus@codewreck.org>
Fri, 30 Sep 2022 10:25:18 +0000 (19:25 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Thu, 6 Oct 2022 12:33:55 +0000 (21:33 +0900)
commit87e462f71361a47b154865dc14032a27580dd4cb
tree760dcd2103f2216496d4d442e727306e8418337f
parent5a967e28873816806a8f1e7c6c7d1ac28369f8b9
libbpf: add compat helpers for libbpf down to 0.1.0

- new symbols are available from libbpf 0.6.0 so could be used with
libbpf.so.0, but we're sure the old symbols will be there and this
simplifies code
- detection at runtime should always work, regardless of whether systemd
has been compiled with older or newer libbpf and runs with older or newer
libbpf
meson.build
src/core/bpf-lsm.c
src/core/bpf-socket-bind.c
src/core/restrict-ifaces.c
src/shared/bpf-compat.h [new file with mode: 0644]
src/shared/bpf-dlopen.c
src/shared/bpf-dlopen.h