[PKGS-7388] only perform check for Debian, Mint, Ubuntu

This commit is contained in:
Michael Boelen 2020-03-17 16:05:14 +01:00
parent 77dd0e0bbe
commit 6e3e93d585
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
2 changed files with 10 additions and 1 deletions

View File

@ -106,6 +106,7 @@ Using the relevant options, the scan will change base on the intended goal.
- NAME-4408 - corrected Report function call
- NETW-3032 - small rewrite of test and extended with addrwatch
- PHP-2372 - don't look in the cli configuration files
- PKGS-7388 - only perform check for Debian/Ubuntu/Mint
- PKGS-7410 - use multiple package managers when available
- PKGS-7410 - added support for Zypper to test number of kernels
- PROC-3602 - allow different root directory

View File

@ -983,7 +983,15 @@
#
# Test : PKGS-7388
# Description : Check security repository in Debian/ubuntu apt sources.list file
if [ -f ${ROOTDIR}etc/apt/sources.list -a -d ${ROOTDIR}etc/apt/sources.list.d ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
if [ -f ${ROOTDIR}etc/apt/sources.list -a -d ${ROOTDIR}etc/apt/sources.list.d ]; then
case "${LINUX_VERSION}" in
"Debian" | "Linux Mint" | "Ubuntu") PREQS_MET="YES" ;;
*)
PREQS_MET="NO"
LogText "Skipping test, although sources.list or sources.list.d exists. This specific OS version most likely has no security repository"
;;
esac
fi
Register --test-no PKGS-7388 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check security repository in Debian/ubuntu apt sources.list file"
if [ $SKIPTEST -eq 0 ]; then
FOUND=0