#!/bin/bash

## Copyright (C) 2020 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
shopt -s inherit_errexit
shopt -s shift_verbose
export LC_ALL=C

if grep "libhardened_malloc" "/proc/$$/maps" >/dev/null 2>&1; then
    printf '%s\n' "yes"
    exit 0
fi

printf '%s\n' "no"
exit 1
