Skip to content
Permalink
Browse files
Add test against Graphene hardened malloc.
  • Loading branch information
daztucker committed Jan 8, 2021
1 parent 6cb52d5 commit b744914
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
@@ -40,7 +40,10 @@ for TARGET in $TARGETS; do
"--with-selinux")
PACKAGES="$PACKAGES libselinux1-dev selinux-policy-dev"
;;
*) echo "Invalid option"
"--with-ldflags=-lhardened_malloc")
INSTALL_HARDENED_MALLOC=yes
;;
*) echo "Invalid option '${TARGET}'"
exit 1
;;
esac
@@ -56,3 +59,10 @@ if [ "x" != "x$PACKAGES" ]; then
sudo apt update -qq
sudo apt install -qy $PACKAGES
fi

if [ "${INSTALL_HARDENED_MALLOC}" = "yes" ]; then
(cd ${HOME} &&
git clone https://github.com/GrapheneOS/hardened_malloc.git &&
cd ${HOME}/hardened_malloc &&
make && sudo cp libhardened_malloc.so /usr/lib/)
fi
@@ -16,6 +16,7 @@ jobs:
configs:
- ""
- "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux"
- "--with-ldflags=-lhardened_malloc"

steps:
- uses: actions/checkout@v2

0 comments on commit b744914

Please sign in to comment.