Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion usr/bin/hardened-malloc-enabled-test
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Copyright (C) 2020 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## 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
Expand Down
4 changes: 2 additions & 2 deletions usr/bin/hardened-malloc-type-test
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
## Copyright (C) 2020 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## 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
Expand Down