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>2019-04-17 16:26:43 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-04-17 16:26:43 +0300
commit017103e20cdfff205f8f4547dd360fc64fed9403 (patch)
tree2641b41f22a9c042859179b95c93944c1c1ec762 /include/tests_ports_packages
parent121c86144643973c71690c690b983ad2482ff9fd (diff)
[PKGS-7392] - Skip test for Zypper-based systems
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 85509218..17ff4065 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -1055,7 +1055,8 @@
#
# Test : PKGS-7392
# Description : Check Debian/Ubuntu vulnerable packages
- if [ -x ${ROOTDIR}usr/bin/apt-get ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
+ # Note : Skip for zypper-based systems
+ if [ -x ${ROOTDIR}usr/bin/apt-get -a -z "${ZYPPERBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no PKGS-7392 --os Linux --preqs-met ${PREQS_MET} --root-only YES --weight L --network YES --category security --description "Check for Debian/Ubuntu security updates"
if [ ${SKIPTEST} -eq 0 ]; then
VULNERABLE_PACKAGES_FOUND=0