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:
authorMichael Boelen <michael.boelen@cisofy.com>2017-03-09 14:27:38 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-09 14:27:38 +0300
commit336dcb4811593deee4568da6ab66c953cebc888f (patch)
treefeb1e56b5ad32f1f5b34afc3fbdecaade35b3a25 /include
parente082b8af0836a60d6c7b8f41131df87fe74a8918 (diff)
[PKGS-7381] Enhanced FreeBSD pkg audit testing
Diffstat (limited to 'include')
-rw-r--r--include/tests_ports_packages7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index f6681df4..7c0a7bdc 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -659,7 +659,12 @@
PACKAGE_AUDIT_TOOL_FOUND=1
PACKAGE_AUDIT_TOOL="pkg audit"
if [ -f ${ROOTDIR}var/db/pkg/vuln.xml ]; then
- FIND=$(${PKG_BINARY} audit 2> /dev/null)
+ # Query pkg audit, with optional refresh of vulnerability data (-F)
+ if [ ${REFRESH_REPOSITORIES} -eq 1 ]; then
+ FIND=$(${PKG_BINARY} audit -F -q 2> /dev/null)
+ else
+ FIND=$(${PKG_BINARY} audit -q 2> /dev/null)
+ fi
if [ $? -eq 0 ]; then
LogText "Result: pkg audit results are clean"
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN