blob: 3d4a21462458349a511ebe0a640edb05dd374fbc [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -07002menuconfig BPFILTER
3 bool "BPF based packet filtering framework (BPFILTER)"
Masahiro Yamada864e8982021-01-26 08:20:26 +09004 depends on BPF && INET
Alexei Starovoitovd71fa5c2020-08-18 21:27:58 -07005 select USERMODE_DRIVER
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -07006 help
7 This builds experimental bpfilter framework that is aiming to
8 provide netfilter compatible functionality via BPF
9
10if BPFILTER
11config BPFILTER_UMH
12 tristate "bpfilter kernel module with user mode helper"
Masahiro Yamada9326e0f2020-07-01 18:26:44 +090013 depends on CC_CAN_LINK
14 depends on m || CC_CAN_LINK_STATIC
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -070015 default m
16 help
17 This builds bpfilter kernel module with embedded user mode helper
Valdis Kl ē tnieks9f64fbd2020-05-09 00:47:19 -040018
Masahiro Yamada9326e0f2020-07-01 18:26:44 +090019 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 Starovoitovd2ba09c2018-05-21 19:22:30 -070023endif