Merge "[NETD_BPF#8] Move BpfUtils.cpp to BpfUtils.h"
diff --git a/libbpf_android/Loader.cpp b/libbpf_android/Loader.cpp
index 77b865a..1892fe2 100644
--- a/libbpf_android/Loader.cpp
+++ b/libbpf_android/Loader.cpp
@@ -28,9 +28,9 @@
 #include <sys/utsname.h>
 #include <unistd.h>
 
-// This is BpfLoader v0.7
+// This is BpfLoader v0.8
 #define BPFLOADER_VERSION_MAJOR 0u
-#define BPFLOADER_VERSION_MINOR 7u
+#define BPFLOADER_VERSION_MINOR 8u
 #define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR)
 
 #include "../progs/include/bpf_map_def.h"
@@ -283,6 +283,13 @@
     for (auto& snt : sectionNameTypes)
         if (StartsWith(name, snt.name)) return snt.type;
 
+    // TODO Remove this code when fuse-bpf is upstream and this BPF_PROG_TYPE_FUSE is fixed
+    if (StartsWith(name, "fuse/")) {
+        int result = BPF_PROG_TYPE_UNSPEC;
+        ifstream("/sys/fs/fuse/bpf_prog_type_fuse") >> result;
+        return static_cast<bpf_prog_type>(result);
+    }
+
     return BPF_PROG_TYPE_UNSPEC;
 }