mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Merge pull request #135 from rhyven/patch-5
Accept apt-get as a package audit tool
This commit is contained in:
commit
2fe5fa2cc6
@ -881,13 +881,16 @@
|
|||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
VULNERABLE_PACKAGES_FOUND=0
|
VULNERABLE_PACKAGES_FOUND=0
|
||||||
SCAN_PERFORMED=0
|
SCAN_PERFORMED=0
|
||||||
|
# If apt-get is installed, then it's a reasonable option for a Package Audit tool
|
||||||
|
# If apt-check exists, it will be preferred and will overwrite the PACKAGE_AUDIT_TOOL setting
|
||||||
|
PACKAGE_AUDIT_TOOL="apt-get"
|
||||||
|
PACKAGE_AUDIT_TOOL_FOUND=1
|
||||||
# Update the repository, outdated repositories don't give much information
|
# Update the repository, outdated repositories don't give much information
|
||||||
LogText "Action: updating repository with apt-get"
|
LogText "Action: updating repository with apt-get"
|
||||||
/usr/bin/apt-get -q=2 update
|
/usr/bin/apt-get -q=2 update
|
||||||
LogText "Result: apt-get finished"
|
LogText "Result: apt-get finished"
|
||||||
LogText "Test: Checking if /usr/lib/update-notifier/apt-check exists"
|
LogText "Test: Checking if /usr/lib/update-notifier/apt-check exists"
|
||||||
if [ -x /usr/lib/update-notifier/apt-check ]; then
|
if [ -x /usr/lib/update-notifier/apt-check ]; then
|
||||||
PACKAGE_AUDIT_TOOL_FOUND=1
|
|
||||||
PACKAGE_AUDIT_TOOL="apt-check"
|
PACKAGE_AUDIT_TOOL="apt-check"
|
||||||
LogText "Result: found /usr/lib/update-notifier/apt-check"
|
LogText "Result: found /usr/lib/update-notifier/apt-check"
|
||||||
LogText "Test: checking if any of the updates contain security updates"
|
LogText "Test: checking if any of the updates contain security updates"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user