Need full support of pidfd to work, so skip the test if it's not
available
fi
inst_binary mksquashfs
inst_binary unsquashfs
+ inst_binary pkcheck
install_verity_minimal
}
[[ ! -f /usr/lib/systemd/system/systemd-nsresourced.socket ]] || \
! command -v mksquashfs || \
! grep -q bpf /sys/kernel/security/lsm ||
- ! find /usr/lib* -name libbpf.so.1 2>/dev/null | grep .; then
+ ! find /usr/lib* -name libbpf.so.1 2>/dev/null | grep . || \
+ systemd-analyze compare-versions "$(uname -r)" lt 6.5 || \
+ systemd-analyze compare-versions "$(pkcheck --version | awk '{print $3}')" lt 124; then
echo "Skipping mountnfsd/nsresourced tests"
exit 0
fi