1 // SPDX-License-Identifier: GPL-2.0 2 #include "vmlinux.h" 3 #include <bpf/bpf_helpers.h> 4 5 /* 6 * Minimal, map-less program. Driven through libbpf's gen_loader (gen_hash) 7 * by prog_tests/signed_loader.c so the generated light-skeleton loader can be 8 * exercised against good and tampered metadata, which the kernel now verifies 9 * at load time via the insns||metadata signature. A socket filter needs no 10 * load-time attach resolution, and having no maps keeps the generated loader's 11 * ctx trivial (0 maps, 1 prog). 12 */ 13 SEC("socket") 14 int probe(void *ctx) 15 { 16 return 0; 17 } 18 19 char _license[] SEC("license") = "GPL"; 20