From bfaf00a34484ec48764ac732835bdfc172531031 Mon Sep 17 00:00:00 2001 From: prady0t Date: Thu, 17 Oct 2024 23:52:56 +0530 Subject: [PATCH 1/2] Config file for oss-fuzz integration Signed-off-by: prady0t --- KubeArmor/fuzz/build.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 KubeArmor/fuzz/build.sh diff --git a/KubeArmor/fuzz/build.sh b/KubeArmor/fuzz/build.sh new file mode 100644 index 000000000..833b1bbd5 --- /dev/null +++ b/KubeArmor/fuzz/build.sh @@ -0,0 +1,5 @@ +printf "package transform\nimport _ \"github.com/AdamKorcz/go-118-fuzz-build/testing\"\n" > $SRC/KubeArmor/KubeArmor/register.go +go mod tidy +compile_native_go_fuzzer github.com/kubearmor/KubeArmor/KubeArmor/core FuzzContainerPolicy FuzzContainerPolicy +compile_native_go_fuzzer github.com/kubearmor/KubeArmor/KubeArmor/core FuzzHostPolicy FuzzHostPolicy + From 1fcca6232bb614d38aa560e8eb7aa15f13c23d22 Mon Sep 17 00:00:00 2001 From: prady0t Date: Fri, 18 Oct 2024 00:07:34 +0530 Subject: [PATCH 2/2] Adding lisence info Signed-off-by: prady0t --- KubeArmor/fuzz/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/KubeArmor/fuzz/build.sh b/KubeArmor/fuzz/build.sh index 833b1bbd5..071647306 100644 --- a/KubeArmor/fuzz/build.sh +++ b/KubeArmor/fuzz/build.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2024 Authors of KubeArmor printf "package transform\nimport _ \"github.com/AdamKorcz/go-118-fuzz-build/testing\"\n" > $SRC/KubeArmor/KubeArmor/register.go go mod tidy compile_native_go_fuzzer github.com/kubearmor/KubeArmor/KubeArmor/core FuzzContainerPolicy FuzzContainerPolicy