hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/net/bpfilter/Kconfig
....@@ -1,6 +1,8 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menuconfig BPFILTER
23 bool "BPF based packet filtering framework (BPFILTER)"
34 depends on NET && BPF && INET
5
+ select USERMODE_DRIVER
46 help
57 This builds experimental bpfilter framework that is aiming to
68 provide netfilter compatible functionality via BPF
....@@ -8,8 +10,14 @@
810 if BPFILTER
911 config BPFILTER_UMH
1012 tristate "bpfilter kernel module with user mode helper"
11
- depends on $(success,$(srctree)/scripts/cc-can-link.sh $(CC))
13
+ depends on CC_CAN_LINK
14
+ depends on m || CC_CAN_LINK_STATIC
1215 default m
1316 help
1417 This builds bpfilter kernel module with embedded user mode helper
18
+
19
+ Note: To compile this as built-in, your toolchain must support
20
+ building static binaries, since rootfs isn't mounted at the time
21
+ when __init functions are called and do_execv won't be able to find
22
+ the elf interpreter.
1523 endif