mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
Moving to 2.4.5 release
This commit is contained in:
parent
bb83598ff1
commit
26d155e012
@ -1,7 +1,7 @@
|
|||||||
Lynis Changelog
|
Lynis Changelog
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Lynis 2.4.5 (2017-xx-xx, not released yet)
|
Lynis 2.4.5 (2017-03-09)
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
--------
|
--------
|
||||||
@ -13,7 +13,9 @@ Tests:
|
|||||||
------
|
------
|
||||||
* AUTH-9328 - Add missing 0027 and 0077 umasks
|
* AUTH-9328 - Add missing 0027 and 0077 umasks
|
||||||
* BOOT-5104 - Add initsplash and minor code enhancements
|
* BOOT-5104 - Add initsplash and minor code enhancements
|
||||||
|
* DBS-1882 - Include Redis configuration file
|
||||||
* FIRE-4502 - Improved detection for iptables modules when using OpenVZ
|
* FIRE-4502 - Improved detection for iptables modules when using OpenVZ
|
||||||
|
* PKGS-7381 - Enhanced package audit for FreeBSD
|
||||||
|
|
||||||
---------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
27
lynis
27
lynis
@ -1,10 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# In Solaris /bin/sh is not POSIX, but /usr/xpg4/bin/sh is.
|
|
||||||
# Switch to /usr/xpg4/bin/sh if it exists and we are not already running it.
|
|
||||||
test "$_" != "/usr/xpg4/bin/sh" && test -f /usr/xpg4/bin/sh && \
|
|
||||||
exec /usr/xpg4/bin/sh "$0" "$@"
|
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Lynis
|
# Lynis
|
||||||
@ -26,6 +21,12 @@ exec /usr/xpg4/bin/sh "$0" "$@"
|
|||||||
# Lynis is an automated auditing tool for Unix based operating systems.
|
# Lynis is an automated auditing tool for Unix based operating systems.
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# In Solaris /bin/sh is not POSIX, but /usr/xpg4/bin/sh is.
|
||||||
|
# Switch to /usr/xpg4/bin/sh if it exists and we are not already running it.
|
||||||
|
test "$_" != "/usr/xpg4/bin/sh" && test -f /usr/xpg4/bin/sh && exec /usr/xpg4/bin/sh "$0" "$@"
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Program information
|
# Program information
|
||||||
PROGRAM_NAME="Lynis"
|
PROGRAM_NAME="Lynis"
|
||||||
@ -33,9 +34,9 @@ exec /usr/xpg4/bin/sh "$0" "$@"
|
|||||||
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
||||||
|
|
||||||
# Version details
|
# Version details
|
||||||
PROGRAM_RELEASE_DATE="2017-03-05"
|
PROGRAM_RELEASE_DATE="2017-03-09"
|
||||||
PROGRAM_RELEASE_TIMESTAMP=1488378460
|
PROGRAM_RELEASE_TIMESTAMP=1489058902
|
||||||
PROGRAM_RELEASE_TYPE="dev" # dev or final
|
PROGRAM_RELEASE_TYPE="final" # dev or final
|
||||||
PROGRAM_VERSION="2.4.5"
|
PROGRAM_VERSION="2.4.5"
|
||||||
|
|
||||||
# Source, documentation and license
|
# Source, documentation and license
|
||||||
@ -103,7 +104,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
|
|||||||
if [ ! -f ${DBDIR}/languages/en ]; then
|
if [ ! -f ${DBDIR}/languages/en ]; then
|
||||||
echo "Could not find languages directory (file: ${DBDIR}/languages/en)"
|
echo "Could not find languages directory (file: ${DBDIR}/languages/en)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
. ${DBDIR}/languages/en
|
. ${DBDIR}/languages/en
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -223,7 +224,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
|
|||||||
# Now determine if we are root (UID = 0)
|
# Now determine if we are root (UID = 0)
|
||||||
if [ ${MYID} -eq 0 ]; then
|
if [ ${MYID} -eq 0 ]; then
|
||||||
PRIVILEGED=1
|
PRIVILEGED=1
|
||||||
else
|
else
|
||||||
Debug "Starting Lynis non-privileged"
|
Debug "Starting Lynis non-privileged"
|
||||||
# Implied pentesting mode if not performed by root user
|
# Implied pentesting mode if not performed by root user
|
||||||
PENTESTINGMODE=1
|
PENTESTINGMODE=1
|
||||||
@ -336,7 +337,7 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
|
|||||||
if [ ${CRONJOB} -eq 1 ]; then
|
if [ ${CRONJOB} -eq 1 ]; then
|
||||||
echo "Quitting, to prevent multiple cron jobs running at the same time"
|
echo "Quitting, to prevent multiple cron jobs running at the same time"
|
||||||
exit 1 # Manually exit, no cleanups to prevent deleting an active PID file
|
exit 1 # Manually exit, no cleanups to prevent deleting an active PID file
|
||||||
else
|
else
|
||||||
wait_for_keypress
|
wait_for_keypress
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -549,7 +550,7 @@ ${NORMAL}
|
|||||||
Display --indent 4 --text "${YELLOW}Notice:${NORMAL} no language file found for '${LANGUAGE}' (tried: ${DBDIR}/languages/${LANGUAGE})"
|
Display --indent 4 --text "${YELLOW}Notice:${NORMAL} no language file found for '${LANGUAGE}' (tried: ${DBDIR}/languages/${LANGUAGE})"
|
||||||
if IsDeveloperVersion; then Display --indent 4 --text "See https://github.com/CISOfy/lynis-sdk/documentation/10-translations.md for more details to help translating Lynis"; fi
|
if IsDeveloperVersion; then Display --indent 4 --text "See https://github.com/CISOfy/lynis-sdk/documentation/10-translations.md for more details to help translating Lynis"; fi
|
||||||
sleep 5
|
sleep 5
|
||||||
else
|
else
|
||||||
LogText "Importing language file (${DBDIR}/languages/${LANGUAGE})"
|
LogText "Importing language file (${DBDIR}/languages/${LANGUAGE})"
|
||||||
. ${DBDIR}/languages/${LANGUAGE}
|
. ${DBDIR}/languages/${LANGUAGE}
|
||||||
fi
|
fi
|
||||||
@ -657,12 +658,14 @@ ${NORMAL}
|
|||||||
#
|
#
|
||||||
LogText "Test: Checking for program update..."
|
LogText "Test: Checking for program update..."
|
||||||
UPDATE_AVAILABLE=0
|
UPDATE_AVAILABLE=0
|
||||||
|
|
||||||
if [ ${SKIP_UPGRADE_TEST} -eq 1 ]; then
|
if [ ${SKIP_UPGRADE_TEST} -eq 1 ]; then
|
||||||
LogText "Upgrade test skipped due profile option set (skip_upgrade_test)"
|
LogText "Upgrade test skipped due profile option set (skip_upgrade_test)"
|
||||||
PROGRAM_LV="${PROGRAM_AC}"
|
PROGRAM_LV="${PROGRAM_AC}"
|
||||||
else
|
else
|
||||||
CheckUpdates
|
CheckUpdates
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then
|
if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then
|
||||||
Display --indent 2 --text "- Program update status... " --result UNKNOWN --color YELLOW
|
Display --indent 2 --text "- Program update status... " --result UNKNOWN --color YELLOW
|
||||||
LogText "Result: Update check failed. No network connection?"
|
LogText "Result: Update check failed. No network connection?"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user