mirror of https://github.com/CISOfy/lynis.git
[PKGS-7388] only perform check for Debian, Mint, Ubuntu
This commit is contained in:
parent
77dd0e0bbe
commit
6e3e93d585
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue