ebpf: added patch to compile ebpf module for arm

This commit is contained in:
Gustavo Iñiguez Goia 2021-04-21 20:49:31 +02:00
parent 0f7e93acdc
commit 05f7e38f9d
2 changed files with 25 additions and 1 deletions

View file

@ -17,3 +17,13 @@ cd ../../../daemon
--start opensnitchd with:
opensnitchd -rules-path /etc/opensnitchd/rules -process-monitor-method ebpf
The kernel where you intend to run it must have some options activated:
$ grep BPF /boot/config-$(uname -r)
CONFIG_CGROUP_BPF=y
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_EVENTS=y
CONFIG_KPROBES=y
CONFIG_KPROBE_EVENTS=y

View file

@ -0,0 +1,14 @@
--- ../../arch/arm/include/asm/unified.h 2021-04-20 10:47:54.075834124 +0000
+++ ../../arch/arm/include/asm/unified-clang-fix.h 2021-04-20 10:47:38.943811970 +0000
@@ -11,7 +11,10 @@
#if defined(__ASSEMBLY__)
.syntax unified
#else
-__asm__(".syntax unified");
+//__asm__(".syntax unified");
+#ifndef __clang__
+ __asm__(".syntax unified");
+#endif
#endif
#ifdef CONFIG_CPU_V7M