From dccfff943c3ea9defd91647cfa3fd8714041bb5a Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Tue, 10 May 2022 16:34:08 +0200 Subject: Add `make test-annocheck` to detect security issues. * Note that as the annocheck binary package is not available on Ubuntu, and it is working in progress in Debian, the script uses Fedora container, and it requires docker or podman command. https://www.debian.org/devel/wnpp/itp.en.html https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926470 * .github/workflows/compilers.yml: Add "gcc-11 annocheck" case. To pass the CI, set `TEST_ANNOCHECK_OPTS: "--skip-pie --skip-notes"` for now. See . * Skip MJIT tests in case of annocheck case. The MJIT tests fail in the annocheck case. See . --- tool/annocheck/Dockerfile | 4 ++++ tool/annocheck/Dockerfile-copy | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tool/annocheck/Dockerfile create mode 100644 tool/annocheck/Dockerfile-copy (limited to 'tool/annocheck') diff --git a/tool/annocheck/Dockerfile b/tool/annocheck/Dockerfile new file mode 100644 index 0000000000..138adc48de --- /dev/null +++ b/tool/annocheck/Dockerfile @@ -0,0 +1,4 @@ +FROM docker.io/fedora:latest + +RUN dnf -y install annobin-annocheck +WORKDIR /work diff --git a/tool/annocheck/Dockerfile-copy b/tool/annocheck/Dockerfile-copy new file mode 100644 index 0000000000..e658d12ddc --- /dev/null +++ b/tool/annocheck/Dockerfile-copy @@ -0,0 +1,7 @@ +FROM docker.io/fedora:latest +ARG FILES + +RUN dnf -y install annobin-annocheck +RUN mkdir /work +COPY ${FILES} /work +WORKDIR /work -- cgit v1.2.3