eBPF-based security platform
build: require syscall exit tracepoints
John Fastabend9d07f7a91801
diff --git a/Documentation/requirements.rst b/Documentation/requirements.rstindex 85ef27a5..b2402dbd 100644--- a/Documentation/requirements.rst+++ b/Documentation/requirements.rst@@ -56,6 +56,11 @@ fixture.``ENOTSUPP``. Either way ``shirudo init`` cannot attach itsenforcement. The same trampolines later carry ``fentry``,``fexit``, ``fmod_ret`` and ``lsm`` upatches at no extra cost.+ * - ``CONFIG_FTRACE_SYSCALLS``+ - Provides the ``syscalls/sys_exit_prctl`` tracepoint used by+ shirudo's ``PR_SET_MM`` identity guard. Without it,+ ``shirudo init`` cannot attach the cleanup hook and does not+ complete.* - ``CONFIG_SECURITYFS``- ``/sys/kernel/security/lsm``, which the pre-flight reads toconfirm the BPF LSM is active (``bpf_lsm_active``).diff --git a/contrib/build-kernel-package.sh b/contrib/build-kernel-package.shindex 4359d6ca..9c301434 100755--- a/contrib/build-kernel-package.sh+++ b/contrib/build-kernel-package.sh@@ -354,6 +354,7 @@ CONFIG_UPROBE_EVENTS=yCONFIG_CGROUPS=yCONFIG_CGROUP_BPF=yCONFIG_FTRACE=y+CONFIG_FTRACE_SYSCALLS=yCONFIG_FUNCTION_TRACER=yCONFIG_DYNAMIC_FTRACE=yCONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y@@ -495,6 +496,7 @@ require_config CONFIG_BPF_LSM yrequire_config CONFIG_BPF_SYSCALL yrequire_config CONFIG_BPF_JIT yrequire_config CONFIG_CGROUP_BPF y+require_config CONFIG_FTRACE_SYSCALLS yrequire_config CONFIG_FUNCTION_TRACER yrequire_config CONFIG_DYNAMIC_FTRACE yrequire_config CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS y