diff options
author | Julia Kartseva <hex@fb.com> | 2021-03-02 01:56:04 +0100 |
---|---|---|
committer | Julia Kartseva <hex@fb.com> | 2021-04-10 05:28:47 +0200 |
commit | b894ef1b712433e07cd5f11b8f84dfaa0ce5a4ef (patch) | |
tree | 3d5b97e495031cab41c5b5213a74799b7fe71635 /src/core/bpf-foreign.h | |
parent | shared: bpf_attach_type {from,to} string (diff) | |
download | systemd-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