diff --git a/usr/bin/hardened-malloc-enabled-test b/usr/bin/hardened-malloc-enabled-test index b2af7bbd..e31e590f 100755 --- a/usr/bin/hardened-malloc-enabled-test +++ b/usr/bin/hardened-malloc-enabled-test @@ -3,7 +3,7 @@ ## Copyright (C) 2020 - 2021 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. -if cat "/proc/$$/maps" | grep -q libhardened_malloc ; then +if grep -q "libhardened_malloc" "/proc/$$/maps"; then echo "yes" exit 0 fi diff --git a/usr/bin/hardened-malloc-type-test b/usr/bin/hardened-malloc-type-test index 70d8defd..07fa8c8d 100755 --- a/usr/bin/hardened-malloc-type-test +++ b/usr/bin/hardened-malloc-type-test @@ -3,12 +3,12 @@ ## Copyright (C) 2020 - 2021 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. -if cat "/proc/$$/maps" | grep -q libhardened_malloc_kicksecure.so ; then +if grep -q "libhardened_malloc_kicksecure.so" "/proc/$$/maps"; then echo "kicksecure" exit 0 fi -if cat "/proc/$$/maps" | grep -q libhardened_malloc.so ; then +if grep -q "libhardened_malloc.so" "/proc/$$/maps"; then echo "original" exit 0 fi