diff --git a/include/tests_time b/include/tests_time index 097fc400..de82561a 100644 --- a/include/tests_time +++ b/include/tests_time @@ -45,6 +45,9 @@ # Skip NTP tests if we are in a DomU xen instance YYY FIND=$(cat /sys/hypervisor/type) if [ "${FIND}" = "xen" ]; then PREQS_MET="NO"; else PREQS_MET="YES"; fi + elif [ -f /sbin/sysctl ] && [ "`/sbin/sysctl -n security.jail.jailed 2>/dev/null || echo 0`" -eq 1 ]; then + # Skip NTP tests if we're in a FreeBSD jail + PREQS_MET="NO" else PREQS_MET="YES" fi