summaryrefslogtreecommitdiffstats
path: root/src/core/bpf-foreign.h
diff options
context:
space:
mode:
authorJulia Kartseva <hex@fb.com>2021-03-02 01:56:04 +0100
committerJulia Kartseva <hex@fb.com>2021-04-10 05:28:47 +0200
commitb894ef1b712433e07cd5f11b8f84dfaa0ce5a4ef (patch)
tree3d5b97e495031cab41c5b5213a74799b7fe71635 /src/core/bpf-foreign.h
parentshared: bpf_attach_type {from,to} string (diff)
downloadsystemd-b894ef1b712433e07cd5f11b8f84dfaa0ce5a4ef.tar.xz
systemd-b894ef1b712433e07cd5f11b8f84dfaa0ce5a4ef.zip
cgroup: add foreign program to cgroup context
- Store foreign bpf programs in cgroup context. A program is considered foreign if it was loaded to a kernel by an entity external to systemd, so systemd is responsible only for attach and detach paths. - Support the case of pinned bpf programs: pinning to bpffs so a program is kept loaded to the kernel even when program fd is closed by a user application is a common way to extend program's lifetime. - Aadd linked list node struct with attach type and bpffs path fields.
Diffstat (limited to 'src/core/bpf-foreign.h')
0 files changed, 0 insertions, 0 deletions