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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-17 15:02:59 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-03-17 15:02:59 +0300
commitd1db448c515b9aa5de34bf37c90395b9c9daee4b (patch)
tree84b430350381279d78e1d895bbdc73dff8c495e7 /include/binaries
parent7a1719ef75d8ef714ab77ed283e35c3d3d89dd8b (diff)
Skip pacman when it is the game instead of package manager
Diffstat (limited to 'include/binaries')
-rw-r--r--include/binaries7
1 files changed, 6 insertions, 1 deletions
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})" ;;