mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
ebpf: added patch to compile ebpf module for arm
This commit is contained in:
parent
0f7e93acdc
commit
05f7e38f9d
2 changed files with 25 additions and 1 deletions
|
@ -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
|
||||
|
|
14
ebpf_prog/arm-clang-asm-fix.patch
Normal file
14
ebpf_prog/arm-clang-asm-fix.patch
Normal 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
|
Loading…
Add table
Reference in a new issue