summaryrefslogtreecommitdiffstats
path: root/src/shared/bpf-link.h
diff options
context:
space:
mode:
authorJulia Kartseva <hex@fb.com>2021-04-19 22:27:07 +0200
committerJulia Kartseva <hex@fb.com>2021-04-27 01:26:24 +0200
commit3d027d4d60d37de89eaebf2d106ec0c6a492db72 (patch)
tree990459a5cc332041be344612fe37312591244b0b /src/shared/bpf-link.h
parentcore: add SocketBind{Allow|Deny} fragment parser (diff)
downloadsystemd-3d027d4d60d37de89eaebf2d106ec0c6a492db72.tar.xz
systemd-3d027d4d60d37de89eaebf2d106ec0c6a492db72.zip
shared, bpf: add bpf link serialization
core: serialize socket_bind bpf links
Diffstat (limited to '')
-rw-r--r--src/shared/bpf-link.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/bpf-link.h b/src/shared/bpf-link.h
index 7d529ad2cd..095465b07c 100644
--- a/src/shared/bpf-link.h
+++ b/src/shared/bpf-link.h
@@ -3,10 +3,14 @@
#pragma once
#include <bpf/libbpf.h>
+#include <stdio.h>
+#include "fdset.h"
#include "macro.h"
bool can_link_bpf_program(struct bpf_program *prog);
+int serialize_bpf_link(FILE *f, FDSet *fds, const char *key, struct bpf_link *link);
+
struct bpf_link *bpf_link_free(struct bpf_link *p);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct bpf_link *, bpf_link_free);