aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorGravatar AdamKorcz <44787359+AdamKorcz@users.noreply.github.com>2022-07-08 14:44:01 +0100
committerGravatar GitHub <noreply@github.com>2022-07-08 14:44:01 +0100
commit1209ec013eec1eb3b82b1060753afa3a05a76820 (patch)
treea413912aafa2d8aa80a68ff0d7c2ffde01295331 /projects
parent557956d2d083efae1b1ad2a7877021b4e98f94e7 (diff)
cilium: add fuzzers from cncf-fuzzing (#7979)
Signed-off-by: AdamKorcz <adam@adalogics.com>
Diffstat (limited to 'projects')
-rw-r--r--projects/cilium/Dockerfile5
-rwxr-xr-xprojects/cilium/build.sh19
2 files changed, 22 insertions, 2 deletions
diff --git a/projects/cilium/Dockerfile b/projects/cilium/Dockerfile
index 2472e17a..0fd26063 100644
--- a/projects/cilium/Dockerfile
+++ b/projects/cilium/Dockerfile
@@ -21,6 +21,7 @@ RUN wget https://raw.githubusercontent.com/google/AFL/master/dictionaries/json.d
RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus
RUN zip $OUT/fuzz_seed_corpus.zip go-fuzz-corpus/json/corpus/*
-RUN git clone https://github.com/cilium/cilium/ cilium
-RUN cp $SRC/cilium/test/fuzzing/oss-fuzz-build.sh $SRC/build.sh
+RUN git clone --depth 1 https://github.com/cilium/cilium/ cilium
+RUN git clone --depth 1 https://github.com/cncf/cncf-fuzzing
+COPY build.sh $SRC/
WORKDIR $SRC/cilium
diff --git a/projects/cilium/build.sh b/projects/cilium/build.sh
new file mode 100755
index 00000000..350227ef
--- /dev/null
+++ b/projects/cilium/build.sh
@@ -0,0 +1,19 @@
+#!/bin/bash -eu
+# Copyright 2022 Google LLC.
+#
+# 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.
+#
+################################################################################
+
+$SRC/cilium/test/fuzzing/oss-fuzz-build.sh
+$SRC/cncf-fuzzing/projects/cilium/build.sh