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>2020-03-17 18:05:14 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-03-17 18:05:14 +0300
commit6e3e93d5854960dee1e7516922647c303e4094b8 (patch)
tree657250d29223b5c6247d721162354d5635d1748d /include/tests_ports_packages
parent77dd0e0bbe6f4e8bc5f68380628c48bb4b825998 (diff)
[PKGS-7388] only perform check for Debian, Mint, Ubuntu
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 326bd94f..f2291a03 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -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