| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
config HAVE_LIVEPATCH |
| 3 |
bool |
| 4 |
help |
| 5 |
Arch supports kernel live patching |
| 6 |
|
| 7 |
config LIVEPATCH |
| 8 |
bool "Kernel Live Patching" |
| 9 |
depends on DYNAMIC_FTRACE_WITH_REGS || DYNAMIC_FTRACE_WITH_ARGS |
| 10 |
depends on MODULES |
| 11 |
depends on SYSFS |
| 12 |
depends on KALLSYMS_ALL |
| 13 |
depends on HAVE_LIVEPATCH |
| 14 |
depends on !TRIM_UNUSED_KSYMS |
| 15 |
help |
| 16 |
Say Y here if you want to support kernel live patching. |
| 17 |
This option has no runtime impact until a kernel "patch" |
| 18 |
module uses the interface provided by this option to register |
| 19 |
a patch, causing calls to patched functions to be redirected |
| 20 |
to new function code contained in the patch module. |
| 21 |
|
| 22 |
config HAVE_KLP_BUILD |
| 23 |
bool |
| 24 |
help |
| 25 |
Arch supports klp-build |
| 26 |
|
| 27 |
config KLP_BUILD |
| 28 |
def_bool y |
| 29 |
depends on LIVEPATCH && HAVE_KLP_BUILD |
| 30 |
select OBJTOOL |
| 31 |
help |
| 32 |
Enable klp-build support |