Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zepeda <inferiorhumanorgans@users.noreply.github.com>2016-09-22 12:39:55 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-09-22 12:39:55 +0300
commit100afa5f5bab56efded567a037cb3fe7dfe05ae1 (patch)
tree3c24bafd234fbcb50ec7883ae24b26dfda3f6ecd /include/tests_time
parent06c11432ed8d93b51765faa8fb19b15900b0e817 (diff)
Skip NTP checks from within a FreeBSD jail (#281)
Diffstat (limited to 'include/tests_time')
-rw-r--r--include/tests_time3
1 files changed, 3 insertions, 0 deletions
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