diff --git a/contrib/verify/verify.sh b/contrib/verify/verify.sh index 8f972b81ca1..b87be0556ee 100755 --- a/contrib/verify/verify.sh +++ b/contrib/verify/verify.sh @@ -8,6 +8,7 @@ shopt -s nullglob RED="\033[31m" BLUEUNDER="\033[34;4m" GREEN="\033[32m" +YELLOW="\033[33m" NOCOLOR="\033[0m" TETRAGONDIR=/var/lib/tetragon DEBUG=0 @@ -83,6 +84,14 @@ for obj in "$TETRAGONDIR"/*.o; do continue fi + # Check if bpf_override_return is available + if [[ "$B" == bpf_generic_kprobe* || "$B" == bpf_enforcer* ]]; then + if ! bpftool feature probe | grep -q "bpf_override_return"; then + echo -e "${YELLOW}bpf_override_return not available, skipping $B ...${NOCOLOR}\n" + continue + fi + fi + echo -e -n "Verifying $BLUEUNDER$obj$NOCOLOR... " OUT="/tmp/tetragon-verify-$B"