From 131f4c5f015ec1feba98f21f6a94ceb8263e703f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 12 Dec 2019 07:50:59 +1300 Subject: [PATCH] Fix WORKDIR for Samba (#3094) --- projects/samba/Dockerfile | 3 ++- projects/samba/build.sh | 19 +++++++++++++++++++ projects/samba/project.yaml | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 projects/samba/build.sh diff --git a/projects/samba/Dockerfile b/projects/samba/Dockerfile index 3cc07301e..3d3ee35ad 100644 --- a/projects/samba/Dockerfile +++ b/projects/samba/Dockerfile @@ -19,4 +19,5 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN git clone https://gitlab.com/samba-team/samba samba RUN samba/lib/fuzzing/oss-fuzz/build_image.sh -WORKDIR /home/samba +WORKDIR samba +COPY build.sh $SRC/ diff --git a/projects/samba/build.sh b/projects/samba/build.sh new file mode 100755 index 000000000..b809e4c03 --- /dev/null +++ b/projects/samba/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash -eu +# Copyright 2019 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# The real script is maintained in the Samba repo +exec lib/fuzzing/oss-fuzz/build_samba.sh diff --git a/projects/samba/project.yaml b/projects/samba/project.yaml index e5c94bec6..ce99c2e06 100644 --- a/projects/samba/project.yaml +++ b/projects/samba/project.yaml @@ -3,6 +3,8 @@ primary_contact: "douglas.bagnall@catalyst.net.nz" auto_ccs: - "abartlet+google@catalyst.net.nz" - "cryptomilk@gmail.com" +fuzzing_engines: + - libfuzzer sanitizers: - address - undefined