diff --git a/driver/MIT.txt b/driver/MIT.txt index 93cfe435aa..db2c4b38ef 100644 --- a/driver/MIT.txt +++ b/driver/MIT.txt @@ -1,4 +1,4 @@ -Copyright (C) 2021 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/driver/event_stats.h b/driver/event_stats.h index f1a80a5240..787364804a 100644 --- a/driver/event_stats.h +++ b/driver/event_stats.h @@ -1,3 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + +Copyright (C) 2023 The Falco Authors. + +This file is dual licensed under either the MIT or GPL 2. See MIT.txt +or GPL2.txt for full copies of the license. + +*/ #pragma once /* These numbers must be updated when we add new events in the event table */ diff --git a/driver/modern_bpf/CMakeLists.txt b/driver/modern_bpf/CMakeLists.txt index e92f0f51c0..5e4a609dca 100644 --- a/driver/modern_bpf/CMakeLists.txt +++ b/driver/modern_bpf/CMakeLists.txt @@ -1,3 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-only OR MIT +# +# Copyright (C) 2023 The Falco Authors. +# +# This file is dual licensed under either the MIT or GPL 2. See +# MIT.txt or GPL.txt for full copies of the license. +# + option(MODERN_BPF_DEBUG_MODE "Enable BPF debug prints" OFF) option(MODERN_BPF_EXCLUDE_PROGS "Regex to exclude tail-called programs" "") # This is a temporary workaround to solve this regression https://github.com/falcosecurity/libs/issues/1157 diff --git a/driver/modern_bpf/definitions/struct_flavors.h b/driver/modern_bpf/definitions/struct_flavors.h index 30173d3f03..db512258d5 100644 --- a/driver/modern_bpf/definitions/struct_flavors.h +++ b/driver/modern_bpf/definitions/struct_flavors.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + /* We need this header to keep track of all struct/field/enum changes between kernel versions */ #ifndef __STRUCT_FLAVORS_H__ diff --git a/driver/modern_bpf/definitions/vmlinux.h b/driver/modern_bpf/definitions/vmlinux.h index dd5851a51a..7aa49fb284 100644 --- a/driver/modern_bpf/definitions/vmlinux.h +++ b/driver/modern_bpf/definitions/vmlinux.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #if defined(__TARGET_ARCH_x86) #include "x86_64/vmlinux.h" #elif defined(__TARGET_ARCH_arm64) diff --git a/driver/modern_bpf/programs/attached/events/sched_process_exit.bpf.c b/driver/modern_bpf/programs/attached/events/sched_process_exit.bpf.c index fdb1733b56..75bfa166bc 100644 --- a/driver/modern_bpf/programs/attached/events/sched_process_exit.bpf.c +++ b/driver/modern_bpf/programs/attached/events/sched_process_exit.bpf.c @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #include #include #include diff --git a/driver/modern_bpf/programs/attached/events/sched_switch.bpf.c b/driver/modern_bpf/programs/attached/events/sched_switch.bpf.c index dc4c28fe48..58614fca25 100644 --- a/driver/modern_bpf/programs/attached/events/sched_switch.bpf.c +++ b/driver/modern_bpf/programs/attached/events/sched_switch.bpf.c @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #include #include diff --git a/driver/ppm_api_version.h b/driver/ppm_api_version.h index db0bbb69c6..76784e671c 100644 --- a/driver/ppm_api_version.h +++ b/driver/ppm_api_version.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #ifndef PPM_API_VERSION_H #define PPM_API_VERSION_H diff --git a/driver/ppm_tp.c b/driver/ppm_tp.c index 074385b4e2..46f5ab87df 100644 --- a/driver/ppm_tp.c +++ b/driver/ppm_tp.c @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #include "ppm_tp.h" const char *kmod_prog_names[] = { diff --git a/driver/ppm_tp.h b/driver/ppm_tp.h index b28b9f82e6..a38e9d0c45 100644 --- a/driver/ppm_tp.h +++ b/driver/ppm_tp.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #pragma once /* | name | path | */ diff --git a/driver/ppm_version.h b/driver/ppm_version.h index bdecd09d33..f7eccf93ab 100644 --- a/driver/ppm_version.h +++ b/driver/ppm_version.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #ifndef PPM_VERSION_H_ #define PPM_VERSION_H_ diff --git a/driver/systype_compat.h b/driver/systype_compat.h index d1901bd9fb..1606f76c74 100644 --- a/driver/systype_compat.h +++ b/driver/systype_compat.h @@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 The Falco Authors. + * + * This file is dual licensed under either the MIT or GPL 2. See MIT.txt + * or GPL2.txt for full copies of the license. + */ + #ifndef __SYSTYPE_COMPACT_H__ #define __SYSTYPE_COMPACT_H__