shared, bpf: add bpf link serialization

core: serialize socket_bind bpf links
This commit is contained in:
Julia Kartseva
2021-04-26 16:26:24 -07:00
parent 8dd210ab66
commit 3d027d4d60
7 changed files with 99 additions and 1 deletions
+1
View File
@@ -309,6 +309,7 @@ typedef struct Unit {
* attached to unit cgroup by provided program fd and attach type. */
Hashmap *bpf_foreign_by_key;
FDSet *initial_socket_bind_link_fds;
#if BPF_FRAMEWORK
/* BPF links to BPF programs attached to cgroup/bind{4|6} hooks and
* responsible for allowing or denying a unit to bind(2) to a socket