diff --git a/CHANGELOG.md b/CHANGELOG.md index 518b9d60..501729b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/include/binaries b/include/binaries index 0eaf6acb..3f5d72ea 100644 --- a/include/binaries +++ b/include/binaries @@ -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})" ;;