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:
-rw-r--r--CHANGELOG.md1
-rw-r--r--include/functions12
-rwxr-xr-xlynis8
3 files changed, 15 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index df8afa5c..dd1288c5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -228,6 +228,7 @@ Tests
* FILE-6374 - Added /dev/shm and /var/tmp
* FILE-6374 - New test for /var/tmp
* FILE-7524 - Support for multiple profiles
+* HTTP-6632 - Fix for proper detection of Apache modules
* HTTP-6642 - Test disabled
* HTTP-6710 - Trigger suggestion when weak protocols SSLv2/SSLv3 are used
* KRNL-5788 - Support for kernel with grsecurity patches (linux-image-grsec)
diff --git a/include/functions b/include/functions
index 29104c0e..080e3523 100644
--- a/include/functions
+++ b/include/functions
@@ -1411,7 +1411,7 @@
################################################################################
LogText() {
- if [ ! "${LOGFILE}" = "" ]; then CDATE=`date "+%Y-%m-%d %H:%M:%S"`; echo "${CDATE} $1" >> ${LOGFILE}; fi
+ if [ ! "${LOGFILE}" = "" ]; then CDATE=$(date "+%Y-%m-%d %H:%M:%S"); echo "${CDATE} $1" >> ${LOGFILE}; fi
}
@@ -1423,12 +1423,17 @@
LogTextBreak() {
if [ ! "${LOGFILE}" = "" ]; then
- CDATE=`date "+[%H:%M:%S]"`
+ CDATE=$(date "+%Y-%m-%d %H:%M:%S")
echo "${CDATE} ===---------------------------------------------------------------===" >> ${LOGFILE}
fi
}
+ ################################################################################
+ # Name : ParseProfiles()
+ # Description : Check file permissions and parse data from profiles
+ # Returns : <nothing>
+ ################################################################################
ParseProfiles() {
SafePerms ${INCLUDEDIR}/profiles
@@ -1436,10 +1441,9 @@
}
-
################################################################################
# Name : ParseTestValues()
- # Description : Parse nginx configuration lines
+ # Description : Parse values from a specific test
# Inputs : service (e.g. ssh)
# Returns : CHECK_VALUES_ARRAY
################################################################################
diff --git a/lynis b/lynis
index 4dd79c2a..f66bef86 100755
--- a/lynis
+++ b/lynis
@@ -32,7 +32,7 @@
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
# Version details
- PROGRAM_RELEASE_DATE="2016-06-30"
+ PROGRAM_RELEASE_DATE="2016-07-11"
PROGRAM_RELEASE_TIMESTAMP=1467279295
PROGRAM_RELEASE_TYPE="dev" # dev or final
PROGRAM_VERSION="2.2.1"
@@ -473,7 +473,8 @@ ${NORMAL}
#################################################################################
#
# Clear log file and test if it's writable
- echo "### Starting ${PROGRAM_NAME} ${PROGRAM_VERSION} with PID ${OURPID}, build date ${PROGRAM_RELEASE_DATE} ###" > ${LOGFILE}
+ CDATE=$(date "+%Y-%m-%d %H:%M:%S")
+ echo "${CDATE} Starting ${PROGRAM_NAME} ${PROGRAM_VERSION} with PID ${OURPID}, build date ${PROGRAM_RELEASE_DATE}" > ${LOGFILE}
if [ $? -gt 0 ]; then
Display --indent 2 --text "- Clearing log file (${LOGFILE})... " --result WARNING --color RED
echo "${WARNING}Fatal error${NORMAL}: problem while writing to log file. Check location and permissions."
@@ -496,6 +497,9 @@ ${NORMAL}
Report "os_fullname=${OS_FULLNAME}"
Report "os_version=${OS_VERSION}"
if [ "${OS}" = "Linux" ]; then Report "linux_version=${LINUX_VERSION}"; fi
+ if [ ! -z "${OS_KERNELVERSION}" ]; then Report "os_kernel_version=${OS_KERNELVERSION}"; fi
+ if [ ! -z "${OS_KERNELVERSION_FULL}" ]; then Report "os_kernel_version_full=${OS_KERNELVERSION_FULL}"; fi
+
Report "hostname=${HOSTNAME}"
if [ "${HOSTNAME}" = "" ]; then