From 3c93f4ffc0171ce4cc166637765dc1d68db114c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Thu, 27 Jun 2019 02:29:48 +0200 Subject: [PATCH] Added integration for qubes-core-qubesdb (#2540) * Added integration for qubes-core-qubesdb Integration for qubesdb daemon used for communication between VMs. * Build qubes fuzzers only for the appropriate sanitizer --- projects/qubes-os/Dockerfile | 4 +++- projects/qubes-os/build.sh | 12 ++++++++++-- projects/qubes-os/project.yaml | 3 --- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/projects/qubes-os/Dockerfile b/projects/qubes-os/Dockerfile index e0edeeb70..b6cd045f8 100644 --- a/projects/qubes-os/Dockerfile +++ b/projects/qubes-os/Dockerfile @@ -17,10 +17,12 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER paras.chetal@gmail.com -RUN apt-get update && apt-get -y install build-essential automake libtool git python +RUN apt-get update && apt-get -y install build-essential automake libtool git python libsystemd-dev WORKDIR qubes-os RUN git clone --single-branch https://github.com/QubesOS/qubes-app-linux-input-proxy $SRC/qubes-os/app-linux-input-proxy +RUN git clone --single-branch https://github.com/QubesOS/qubes-core-qubesdb $SRC/qubes-os/qubes-core-qubesdb + COPY build.sh *.options $SRC/ diff --git a/projects/qubes-os/build.sh b/projects/qubes-os/build.sh index 6a8ae5f6e..372a47843 100644 --- a/projects/qubes-os/build.sh +++ b/projects/qubes-os/build.sh @@ -15,10 +15,18 @@ # ################################################################################ -cd $SRC/qubes-os/app-linux-input-proxy +if [ "$SANITIZER" != 'undefined' ]; then + cd $SRC/qubes-os/app-linux-input-proxy + make -C fuzz + cp fuzz/*_fuzzer $OUT/ + cp fuzz/*_seed_corpus.zip $OUT/ + cp fuzz/*.options $OUT/ +fi + +cd $SRC/qubes-os/qubes-core-qubesdb + make -C fuzz cp fuzz/*_fuzzer $OUT/ cp fuzz/*_seed_corpus.zip $OUT/ cp fuzz/*.options $OUT/ - diff --git a/projects/qubes-os/project.yaml b/projects/qubes-os/project.yaml index d25295c8f..80a316f69 100644 --- a/projects/qubes-os/project.yaml +++ b/projects/qubes-os/project.yaml @@ -4,6 +4,3 @@ auto_ccs: - "joanna@invisiblethingslab.com" - "marmarek@invisiblethingslab.com" - "paras.chetal@gmail.com" -sanitizers: - - address - - memory