[PATCH bpf-next v5 0/2] bpf: enable some functions in cgroup programs

Matteo Croce posted 2 patches 1 year, 5 months ago
There is a newer version of this series
include/linux/bpf.h      |  1 +
kernel/bpf/btf.c         |  8 ++++++--
kernel/bpf/cgroup.c      |  2 ++
kernel/bpf/helpers.c     | 29 +++++++++++++++++++++++++++++
kernel/trace/bpf_trace.c | 23 -----------------------
5 files changed, 38 insertions(+), 25 deletions(-)
[PATCH bpf-next v5 0/2] bpf: enable some functions in cgroup programs
Posted by Matteo Croce 1 year, 5 months ago
From: Matteo Croce <teknoraver@meta.com>

Enable some BPF kfuncs and the helper bpf_current_task_under_cgroup()
for program types BPF_CGROUP_*.
These will be used by systemd-networkd:
https://github.com/systemd/systemd/pull/32212

v4->v5:
Same code, but v4 had an old cover letter

v3->v4:
Reset all the acked-by tags because the code changed a bit.

Signed-off-by: Matteo Croce <teknoraver@meta.com>

Matteo Croce (2):
  bpf: enable generic kfuncs for BPF_CGROUP_* programs
  bpf: allow bpf_current_task_under_cgroup() with BPF_CGROUP_*

 include/linux/bpf.h      |  1 +
 kernel/bpf/btf.c         |  8 ++++++--
 kernel/bpf/cgroup.c      |  2 ++
 kernel/bpf/helpers.c     | 29 +++++++++++++++++++++++++++++
 kernel/trace/bpf_trace.c | 23 -----------------------
 5 files changed, 38 insertions(+), 25 deletions(-)

-- 
2.46.0