mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 17:25:09 +02:00
Add test against Graphene hardened malloc.
This commit is contained in:
parent
6cb52d5bf7
commit
b744914fcb
12
.github/setup_ci.sh
vendored
12
.github/setup_ci.sh
vendored
@ -40,7 +40,10 @@ for TARGET in $TARGETS; do
|
|||||||
"--with-selinux")
|
"--with-selinux")
|
||||||
PACKAGES="$PACKAGES libselinux1-dev selinux-policy-dev"
|
PACKAGES="$PACKAGES libselinux1-dev selinux-policy-dev"
|
||||||
;;
|
;;
|
||||||
*) echo "Invalid option"
|
"--with-ldflags=-lhardened_malloc")
|
||||||
|
INSTALL_HARDENED_MALLOC=yes
|
||||||
|
;;
|
||||||
|
*) echo "Invalid option '${TARGET}'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -56,3 +59,10 @@ if [ "x" != "x$PACKAGES" ]; then
|
|||||||
sudo apt update -qq
|
sudo apt update -qq
|
||||||
sudo apt install -qy $PACKAGES
|
sudo apt install -qy $PACKAGES
|
||||||
fi
|
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
|
||||||
|
1
.github/workflows/c-cpp.yml
vendored
1
.github/workflows/c-cpp.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
|||||||
configs:
|
configs:
|
||||||
- ""
|
- ""
|
||||||
- "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux"
|
- "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux"
|
||||||
|
- "--with-ldflags=-lhardened_malloc"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user