eBPF-based security platform
testing: log BPF keyring state in VM guest
John Fastabend4a9a54a47168
diff --git a/contrib/test-vm-guest.sh b/contrib/test-vm-guest.shindex cccc69a4..9571e217 100755--- a/contrib/test-vm-guest.sh+++ b/contrib/test-vm-guest.sh@@ -328,6 +328,14 @@ grep -aq signature_size /sys/kernel/btf/vmlinuxtest -c /dev/tpm0test -c /dev/tpmrm0tpm2_getrandom 8 >/dev/null+if [[ -r /sys/module/bpf/parameters/keyring_unsealed ]]; then+ log "bpf.keyring_unsealed=$(</sys/module/bpf/parameters/keyring_unsealed)"+else+ log "bpf.keyring_unsealed parameter is missing"+fi+if ! grep -F 'keyring .bpf' /proc/keys; then+ log ".bpf keyring is absent from /proc/keys"+fiif [[ "$VM_INITRD" == 1 ]]; thenlog "initrd Shirudo journal"