mirror of https://github.com/CISOfy/lynis.git
Skip pacman when it is the game instead of package manager
This commit is contained in:
parent
7a1719ef75
commit
d1db448c51
|
@ -71,6 +71,7 @@ Using the relevant options, the scan will change base on the intended goal.
|
|||
- Function: PackageIsInstalled extended with pacman support
|
||||
- Profiles: unused options removed
|
||||
- Profiles: message is displayed when old format "key:value" is used
|
||||
- Binaries: skip pacman when it is the game instead of package manager
|
||||
- Security: the 'nounset' (set -u) parameter is now activated by default
|
||||
- AUTH-9228 - HP-UX support
|
||||
- AUTH-9266 - skip .pam-old files in /etc/pam.d
|
||||
|
|
|
@ -216,7 +216,12 @@
|
|||
ntpq) NTPQBINARY="${BINARY}"; LogText " Found known binary ntpq (time daemon client) - ${BINARY}" ;;
|
||||
osiris) OSIRISBINARY="${BINARY}"; LogText " Found known binary: osiris - ${BINARY}" ;;
|
||||
openssl) OPENSSLBINARY="${BINARY}"; OPENSSLVERSION=$(${BINARY} version 2> /dev/null | head -n 1 | awk '{ print $2 }' | xargs); LogText "Found ${BINARY} (version ${OPENSSLVERSION})" ;;
|
||||
pacman) PACMANBINARY="${BINARY}"; LogText " Found known binary: pacman (package manager) - ${BINARY}" ;;
|
||||
pacman)
|
||||
if [ -z "$(echo "${BINARY}" | grep -E "/usr(/local)?/games")" ]; then
|
||||
PACMANBINARY="${BINARY}"
|
||||
LogText " Found known binary: pacman (package manager) - ${BINARY}"
|
||||
fi
|
||||
;;
|
||||
perl) PERLBINARY="${BINARY}"; PERLVERSION=$(${BINARY} -V:version | sed 's/^version=//' | sed 's/;//' | xargs); LogText "Found ${BINARY} (version ${PERLVERSION})" ;;
|
||||
pgrep) PGREPBINARY="${BINARY}"; LogText " Found known binary: pgrep (search in process list) - ${BINARY}" ;;
|
||||
php) PHPBINARY="${BINARY}"; PHPVERSION=$(${BINARY} -v | awk '{ if ($1=="PHP") { print $2 }}' | head -1); LogText "Found known binary: php (programming language interpreter) - ${BINARY} (version ${PHPVERSION})" ;;
|
||||
|
|
Loading…
Reference in New Issue