Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Alexei Starovoitov | d2ba09c | 2018-05-21 19:22:30 -0700 | [diff] [blame] | 2 | menuconfig BPFILTER |
| 3 | bool "BPF based packet filtering framework (BPFILTER)" |
Masahiro Yamada | 864e898 | 2021-01-26 08:20:26 +0900 | [diff] [blame] | 4 | depends on BPF && INET |
Alexei Starovoitov | d71fa5c | 2020-08-18 21:27:58 -0700 | [diff] [blame] | 5 | select USERMODE_DRIVER |
Alexei Starovoitov | d2ba09c | 2018-05-21 19:22:30 -0700 | [diff] [blame] | 6 | help |
| 7 | This builds experimental bpfilter framework that is aiming to |
| 8 | provide netfilter compatible functionality via BPF |
| 9 | |
| 10 | if BPFILTER |
| 11 | config BPFILTER_UMH |
| 12 | tristate "bpfilter kernel module with user mode helper" |
Masahiro Yamada | 9326e0f | 2020-07-01 18:26:44 +0900 | [diff] [blame] | 13 | depends on CC_CAN_LINK |
| 14 | depends on m || CC_CAN_LINK_STATIC |
Alexei Starovoitov | d2ba09c | 2018-05-21 19:22:30 -0700 | [diff] [blame] | 15 | default m |
| 16 | help |
| 17 | This builds bpfilter kernel module with embedded user mode helper |
Valdis Kl ē tnieks | 9f64fbd | 2020-05-09 00:47:19 -0400 | [diff] [blame] | 18 | |
Masahiro Yamada | 9326e0f | 2020-07-01 18:26:44 +0900 | [diff] [blame] | 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. |
Alexei Starovoitov | d2ba09c | 2018-05-21 19:22:30 -0700 | [diff] [blame] | 23 | endif |