summaryrefslogtreecommitdiff
path: root/bpfloader/BpfLoader.cpp
diff options
context:
space:
mode:
authorPaul Lawrence <paullawrence@google.com>2022-07-19 16:13:49 -0700
committerPaul Lawrence <paullawrence@google.com>2022-07-22 12:35:36 -0700
commit7fb8b546e3d6476727d79771ede5bd945cd24980 (patch)
treea9cc3c6dc5842abfb8a68a788dd296d997e27ffc /bpfloader/BpfLoader.cpp
parent15f1bf8928a3c136fe7487c9eb70053922e63db5 (diff)
downloadbpf-7fb8b546e3d6476727d79771ede5bd945cd24980.tar.gz
Add fuse prog types to allowed prog types from system
Until fuse-bpf is upstreamed, the value BPF_PROG_TYPE_FUSE is dynamically defined, so use BPF_PROG_TYPE_UNSPEC as a placeholder and read the actual value from sys/fs/fuse Bug: 202785178 Test: fuse bpf can be enabled successfully Change-Id: I67d3ff45768b581a6b239e235edaa6e46a2f6fe0
Diffstat (limited to 'bpfloader/BpfLoader.cpp')
-rw-r--r--bpfloader/BpfLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bpfloader/BpfLoader.cpp b/bpfloader/BpfLoader.cpp
index b8dd504..f0ff413 100644
--- a/bpfloader/BpfLoader.cpp
+++ b/bpfloader/BpfLoader.cpp
@@ -107,6 +107,7 @@ constexpr bpf_prog_type kPlatformAllowedProgTypes[] = {
BPF_PROG_TYPE_PERF_EVENT,
BPF_PROG_TYPE_SOCKET_FILTER,
BPF_PROG_TYPE_TRACEPOINT,
+ BPF_PROG_TYPE_UNSPEC, // Will be replaced with fuse bpf program type
};
// see b/162057235. For arbitrary program types, the concern is that due to the lack of