mirror of https://github.com/CISOfy/lynis.git
Merge pull request #853 from deltablot/php
Skip the PHP cli configuration file when looking for expose_php
This commit is contained in:
commit
77dd0e0bbe
|
@ -105,6 +105,7 @@ Using the relevant options, the scan will change base on the intended goal.
|
|||
- NAME-4404 - improved screen and log output
|
||||
- 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-7410 - use multiple package managers when available
|
||||
- PKGS-7410 - added support for Zypper to test number of kernels
|
||||
- PROC-3602 - allow different root directory
|
||||
|
|
|
@ -291,6 +291,12 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FOUND=0
|
||||
for FILE in ${PHPINI_ALLFILES}; do
|
||||
# Don't look at this setting in cli configuration
|
||||
case "${FILE}" in
|
||||
*/cli/*)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
LogText "Test: Checking file ${FILE}"
|
||||
FIND=$(${EGREPBINARY} -i 'expose_php.*(on|yes|1)' ${FILE} | ${GREPBINARY} -v '^;')
|
||||
if HasData "${FIND}"; then
|
||||
|
|
Loading…
Reference in New Issue