summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/config
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2023-11-30 02:44:16 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-12-02 03:21:03 +0300
commit341f06fdddf72cd60a10945152f69f0f1d614519 (patch)
tree0b17fcf04dd1fc3dd848eee2d9c2421b310c6587 /tools/testing/selftests/bpf/config
parent6b0ae4566aba566a2ab4a2de9c59ab3d7f4b43c2 (diff)
downloadlinux-341f06fdddf72cd60a10945152f69f0f1d614519.tar.xz
selftests/bpf: Add tests for filesystem kfuncs
Add selftests for two new filesystem kfuncs: 1. bpf_get_file_xattr 2. bpf_get_fsverity_digest These tests simply make sure the two kfuncs work. Another selftest will be added to demonstrate how to use these kfuncs to verify file signature. CONFIG_FS_VERITY is added to selftests config. However, this is not sufficient to guarantee bpf_get_fsverity_digest works. This is because fsverity need to be enabled at file system level (for example, with tune2fs on ext4). If local file system doesn't have this feature enabled, just skip the test. Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20231129234417.856536-6-song@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/config')
-rw-r--r--tools/testing/selftests/bpf/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 782876452acf..c125c441abc7 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -23,6 +23,7 @@ CONFIG_FPROBE=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_FUNCTION_ERROR_INJECTION=y
CONFIG_FUNCTION_TRACER=y
+CONFIG_FS_VERITY=y
CONFIG_GENEVE=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y