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:
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages55
1 files changed, 4 insertions, 51 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index 23a66584..8143113a 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -5,8 +5,8 @@
# Lynis
# ------------------
#
-# Copyright 2007-2015, Michael Boelen (michael@rootkit.nl), The Netherlands
-# Web site: http://www.rootkit.nl
+# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com)
+# Web site: https://cisofy.com
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License.
@@ -79,35 +79,6 @@
#
#################################################################################
#
-# Temporary disabled due false positives
-# Packages like docbook, gcc, automake report multiple installed versions
-# # Test : PKGS-7303
-# # Description : Query FreeBSD pkg_info
-# if [ -x /usr/sbin/pkg_info ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
-# Register --test-no PKGS-7303 --preqs-met ${PREQS_MET} --weight L --network NO --description "Query FreeBSD for double installed packages"
-# if [ ${SKIPTEST} -eq 0 ]; then
-# SDOUBLEINSTALLED=`pkg_info | sort | sed -e 's/-[0-9].*$//' | uniq -c | grep -v '^[[:space:]]*1' | tr -s ' ' | cut -d ' ' -f3`
-# if [ "${SDOUBLEINSTALLED}" = "" ]; then
-# Display --indent 6 --text "- Querying pkg_info for double installed packages" --result OK --color GREEN
-# logtext "Ok, no packages show up twice or more in the package listing."
-# else
-# Display --indent 6 --text "- Querying pkg_info for double installed packages" --result WARNING --color RED
-# for J in ${SDOUBLEINSTALLED}; do
-# ReportWarning ${TEST_NO} "M" "Found probably incorrect installed package (${J})"
-# logtext "This package ${J} is visible twice or more in the pkg_info listing."
-# ReportSuggestion ${TEST_NO} "(FreeBSD) run pkgdb -F and check this manually."
-# ReportSuggestion ${TEST_NO} "(OpenBSD) check dependencies to see if one of the double "
-# logtext "installed packages is unneeded."
-# report "double_installed_package[]=${J}"
-# done
-# fi
-# else
-# Display --indent 4 --text "- Searching pkg_info" --result "NOT FOUND" --color WHITE
-# logtext "Result: pkg_info can NOT be found on this system"
-# fi
-#
-#################################################################################
-#
# Test : PKGS-7304
# Description : Gentoo packages
if [ -x /usr/bin/emerge -a -x /usr/bin/equery ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
@@ -152,7 +123,6 @@
logtext "Result: pkginfo can NOT be found on this system"
fi
#
-#
#################################################################################
#
# Test : PKGS-7308
@@ -202,7 +172,6 @@
if [ "${SPACKAGES}" = "" ]; then
logtext "Result: pacman binary available, but package list seems to be empty"
logtext "Info: looks like the pacman binary is installed, but not used for package installation"
- #YYY ReportException?
else
for J in ${SPACKAGES}; do
N=`expr ${N} + 1`
@@ -380,7 +349,7 @@
fi
#
#################################################################################
-
+#
# Test : PKGS-7348
# Description : Show unneeded distfiles if present
# Notes : Portsclean seems to be gone from the ports, so no suggestion or warning is
@@ -540,7 +509,6 @@
if [ "${FIND}" = "" ]; then
logtext "Result: pkg audit results are clean"
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result NONE --color GREEN
- # Don't check yet, output of found vulnerable packages unclear (YYY)
else
logtext "Result: ${FIND}"
#Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result WARNING --color RED
@@ -1015,21 +983,6 @@
#
#################################################################################
#
- # Test : PKGS-7414
- # Description : Check installonly_limit in yum.conf
-#
-#################################################################################
-#
- # Test : PKGS-7416
- # Description : Check for popularity-contest (Debian/Ubuntu)
-#
-#################################################################################
-#
- # Test : PKGS-7418
- # Description : Check for yum-changelog
-#
-#################################################################################
-#
if [ ! "${INSTALLED_PACKAGES}" = "" ]; then
report "installed_packages_array=${INSTALLED_PACKAGES}"
@@ -1043,4 +996,4 @@ wait_for_keypress
#
#================================================================================
-# Lynis - Copyright 2007-2015 Michael Boelen, CISOfy - https://cisofy.com
+# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com