From a00580ad0d6276f52ab78ba33e9421a67ba9eeac Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Thu, 14 Sep 2023 17:28:09 +0200 Subject: [PATCH] update: add SPDX license identifier See https://github.com/falcosecurity/evolution/issues/318 Signed-off-by: Leonardo Grasso --- CMakeLists.txt | 1 + cmake/cpack/CMakeCPackOptions.cmake | 14 ++++++++++++++ cmake/modules/CPackConfig.cmake | 3 ++- cmake/modules/Coverage.cmake | 3 ++- cmake/modules/copy_files_to_build_dir.cmake | 3 ++- cmake/modules/cpp-httplib.cmake | 3 ++- cmake/modules/cxxopts.cmake | 3 ++- cmake/modules/driver-repo/CMakeLists.txt | 3 ++- cmake/modules/driver.cmake | 3 ++- cmake/modules/falco-version.cmake | 3 ++- cmake/modules/falcoctl.cmake | 1 + .../falcosecurity-libs-repo/CMakeLists.txt | 3 ++- cmake/modules/falcosecurity-libs.cmake | 1 + cmake/modules/libyaml.cmake | 3 ++- cmake/modules/njson.cmake | 1 + cmake/modules/plugins.cmake | 1 + cmake/modules/rules.cmake | 1 + cmake/modules/static-analysis.cmake | 14 ++++++++++++++ cmake/modules/yaml-cpp.cmake | 3 ++- docker/driver-loader-legacy/docker-entrypoint.sh | 3 ++- docker/driver-loader/docker-entrypoint.sh | 5 +++-- docker/falco/docker-entrypoint.sh | 5 +++-- falco.yaml | 1 + scripts/CMakeLists.txt | 3 ++- scripts/debian/postinst.in | 3 ++- scripts/debian/postrm.in | 3 ++- scripts/debian/prerm.in | 3 ++- scripts/falco-driver-loader | 3 ++- scripts/ignored-calls.sh | 3 ++- scripts/rpm/postinstall.in | 3 ++- scripts/rpm/postuninstall.in | 3 ++- scripts/rpm/preuninstall.in | 3 ++- unit_tests/CMakeLists.txt | 1 + unit_tests/engine/test_falco_utils.cpp | 1 + .../engine/test_filter_details_resolver.cpp | 3 ++- unit_tests/engine/test_filter_macro_resolver.cpp | 1 + .../engine/test_filter_warning_resolver.cpp | 1 + unit_tests/engine/test_plugin_requirements.cpp | 1 + unit_tests/engine/test_rulesets.cpp | 1 + .../falco/app/actions/app_action_helpers.h | 16 ++++++++++++++++ .../actions/test_configure_interesting_sets.cpp | 1 + .../test_configure_syscall_buffer_num.cpp | 1 + .../app/actions/test_select_event_sources.cpp | 1 + unit_tests/falco/test_atomic_signal_handler.cpp | 3 ++- unit_tests/falco/test_configuration.cpp | 1 + userspace/engine/CMakeLists.txt | 3 ++- userspace/engine/banned.h | 1 + userspace/engine/evttype_index_ruleset.cpp | 3 ++- userspace/engine/evttype_index_ruleset.h | 3 ++- userspace/engine/falco_common.cpp | 5 +++-- userspace/engine/falco_common.h | 3 ++- userspace/engine/falco_engine.cpp | 3 ++- userspace/engine/falco_engine.h | 3 ++- userspace/engine/falco_engine_version.h | 1 + userspace/engine/falco_load_result.cpp | 3 ++- userspace/engine/falco_load_result.h | 3 ++- userspace/engine/falco_rule.h | 3 ++- userspace/engine/falco_source.h | 3 ++- userspace/engine/falco_utils.cpp | 1 + userspace/engine/falco_utils.h | 1 + userspace/engine/filter_details_resolver.cpp | 3 ++- userspace/engine/filter_details_resolver.h | 1 + userspace/engine/filter_macro_resolver.cpp | 3 ++- userspace/engine/filter_macro_resolver.h | 3 ++- userspace/engine/filter_ruleset.h | 3 ++- userspace/engine/filter_warning_resolver.cpp | 3 ++- userspace/engine/filter_warning_resolver.h | 3 ++- userspace/engine/formats.cpp | 3 ++- userspace/engine/formats.h | 3 ++- userspace/engine/indexed_vector.h | 3 ++- userspace/engine/json_evt.cpp | 3 ++- userspace/engine/json_evt.h | 3 ++- userspace/engine/rule_loader.cpp | 3 ++- userspace/engine/rule_loader.h | 3 ++- userspace/engine/rule_loader_collector.cpp | 3 ++- userspace/engine/rule_loader_collector.h | 3 ++- userspace/engine/rule_loader_compiler.cpp | 3 ++- userspace/engine/rule_loader_compiler.h | 3 ++- userspace/engine/rule_loader_reader.cpp | 3 ++- userspace/engine/rule_loader_reader.h | 5 +++-- userspace/engine/stats_manager.cpp | 3 ++- userspace/engine/stats_manager.h | 5 +++-- userspace/falco/CMakeLists.txt | 3 ++- userspace/falco/app/actions/actions.h | 1 + .../app/actions/configure_interesting_sets.cpp | 1 + .../app/actions/configure_syscall_buffer_num.cpp | 1 + .../actions/configure_syscall_buffer_size.cpp | 1 + .../falco/app/actions/create_requested_paths.cpp | 1 + .../falco/app/actions/create_signal_handlers.cpp | 1 + userspace/falco/app/actions/helpers.h | 1 + userspace/falco/app/actions/helpers_generic.cpp | 1 + .../falco/app/actions/helpers_inspector.cpp | 1 + userspace/falco/app/actions/init_clients.cpp | 1 + .../falco/app/actions/init_falco_engine.cpp | 1 + userspace/falco/app/actions/init_inspectors.cpp | 1 + userspace/falco/app/actions/init_outputs.cpp | 1 + userspace/falco/app/actions/list_fields.cpp | 1 + userspace/falco/app/actions/list_plugins.cpp | 1 + userspace/falco/app/actions/load_config.cpp | 3 ++- userspace/falco/app/actions/load_plugins.cpp | 1 + userspace/falco/app/actions/load_rules_files.cpp | 1 + userspace/falco/app/actions/pidfile.cpp | 1 + .../actions/print_generated_gvisor_config.cpp | 1 + userspace/falco/app/actions/print_help.cpp | 1 + .../falco/app/actions/print_ignored_events.cpp | 1 + userspace/falco/app/actions/print_page_size.cpp | 1 + .../falco/app/actions/print_plugin_info.cpp | 3 ++- userspace/falco/app/actions/print_support.cpp | 1 + .../falco/app/actions/print_syscall_events.cpp | 1 + userspace/falco/app/actions/print_version.cpp | 1 + userspace/falco/app/actions/process_events.cpp | 1 + .../falco/app/actions/select_event_sources.cpp | 3 ++- .../falco/app/actions/start_grpc_server.cpp | 1 + userspace/falco/app/actions/start_webserver.cpp | 1 + .../falco/app/actions/validate_rules_files.cpp | 1 + userspace/falco/app/app.cpp | 1 + userspace/falco/app/app.h | 1 + userspace/falco/app/options.cpp | 1 + userspace/falco/app/options.h | 1 + userspace/falco/app/restart_handler.cpp | 1 + userspace/falco/app/restart_handler.h | 1 + userspace/falco/app/run_result.h | 1 + userspace/falco/app/signals.h | 1 + userspace/falco/app/state.h | 1 + userspace/falco/atomic_signal_handler.h | 1 + userspace/falco/config_falco.h.in | 3 ++- userspace/falco/configuration.cpp | 3 ++- userspace/falco/configuration.h | 3 ++- userspace/falco/event_drops.cpp | 3 ++- userspace/falco/event_drops.h | 3 ++- userspace/falco/falco.cpp | 3 ++- userspace/falco/falco_outputs.cpp | 3 ++- userspace/falco/falco_outputs.h | 3 ++- userspace/falco/falco_semaphore.h | 3 ++- userspace/falco/grpc_context.cpp | 3 ++- userspace/falco/grpc_context.h | 3 ++- userspace/falco/grpc_queue.h | 3 ++- userspace/falco/grpc_request_context.cpp | 1 + userspace/falco/grpc_request_context.h | 1 + userspace/falco/grpc_server.cpp | 3 ++- userspace/falco/grpc_server.h | 3 ++- userspace/falco/grpc_server_impl.cpp | 3 ++- userspace/falco/grpc_server_impl.h | 3 ++- userspace/falco/logger.cpp | 3 ++- userspace/falco/logger.h | 3 ++- userspace/falco/outputs.h | 3 ++- userspace/falco/outputs.proto | 5 +++-- userspace/falco/outputs_file.cpp | 3 ++- userspace/falco/outputs_file.h | 3 ++- userspace/falco/outputs_grpc.cpp | 5 +++-- userspace/falco/outputs_grpc.h | 3 ++- userspace/falco/outputs_http.cpp | 3 ++- userspace/falco/outputs_http.h | 3 ++- userspace/falco/outputs_program.cpp | 3 ++- userspace/falco/outputs_program.h | 3 ++- userspace/falco/outputs_stdout.cpp | 3 ++- userspace/falco/outputs_stdout.h | 3 ++- userspace/falco/outputs_syslog.cpp | 3 ++- userspace/falco/outputs_syslog.h | 3 ++- userspace/falco/schema.proto | 3 ++- userspace/falco/stats_writer.cpp | 1 + userspace/falco/stats_writer.h | 3 ++- userspace/falco/version.proto | 3 ++- userspace/falco/versions_info.cpp | 1 + userspace/falco/versions_info.h | 1 + userspace/falco/watchdog.h | 5 +++-- userspace/falco/webserver.cpp | 3 ++- userspace/falco/webserver.h | 3 ++- userspace/falco/yaml_helper.h | 3 ++- 169 files changed, 318 insertions(+), 108 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abb9c7ffdb5..893dea2f191 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/cpack/CMakeCPackOptions.cmake b/cmake/cpack/CMakeCPackOptions.cmake index 6c3b4c8526a..ee1b842f294 100644 --- a/cmake/cpack/CMakeCPackOptions.cmake +++ b/cmake/cpack/CMakeCPackOptions.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 The Falco Authors. +# +# 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. +# + if(CPACK_GENERATOR MATCHES "DEB" OR CPACK_GENERATOR MATCHES "RPM") list(APPEND CPACK_INSTALL_COMMANDS "mkdir -p _CPack_Packages/${CPACK_TOPLEVEL_TAG}/${CPACK_GENERATOR}/${CPACK_PACKAGE_FILE_NAME}/usr/lib/systemd/system") list(APPEND CPACK_INSTALL_COMMANDS "cp scripts/systemd/falco-kmod-inject.service _CPack_Packages/${CPACK_TOPLEVEL_TAG}/${CPACK_GENERATOR}/${CPACK_PACKAGE_FILE_NAME}/usr/lib/systemd/system") diff --git a/cmake/modules/CPackConfig.cmake b/cmake/modules/CPackConfig.cmake index f446a73308f..6935046be70 100644 --- a/cmake/modules/CPackConfig.cmake +++ b/cmake/modules/CPackConfig.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/Coverage.cmake b/cmake/modules/Coverage.cmake index 54a309dece8..b8a46e7ab37 100644 --- a/cmake/modules/Coverage.cmake +++ b/cmake/modules/Coverage.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/copy_files_to_build_dir.cmake b/cmake/modules/copy_files_to_build_dir.cmake index efa49a218c0..a3c3ab39249 100644 --- a/cmake/modules/copy_files_to_build_dir.cmake +++ b/cmake/modules/copy_files_to_build_dir.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/cpp-httplib.cmake b/cmake/modules/cpp-httplib.cmake index 212ea809ecb..ec588d6d992 100644 --- a/cmake/modules/cpp-httplib.cmake +++ b/cmake/modules/cpp-httplib.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/cxxopts.cmake b/cmake/modules/cxxopts.cmake index d75445acf3b..c371d044e50 100644 --- a/cmake/modules/cxxopts.cmake +++ b/cmake/modules/cxxopts.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/driver-repo/CMakeLists.txt b/cmake/modules/driver-repo/CMakeLists.txt index d300d4ba723..96f73aeb70c 100644 --- a/cmake/modules/driver-repo/CMakeLists.txt +++ b/cmake/modules/driver-repo/CMakeLists.txt @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/driver.cmake b/cmake/modules/driver.cmake index a5c91695137..64057825e21 100644 --- a/cmake/modules/driver.cmake +++ b/cmake/modules/driver.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/falco-version.cmake b/cmake/modules/falco-version.cmake index e68bbe4f1a9..81da8799f2e 100644 --- a/cmake/modules/falco-version.cmake +++ b/cmake/modules/falco-version.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/falcoctl.cmake b/cmake/modules/falcoctl.cmake index ea5bc0f951a..c7a4a0772ef 100644 --- a/cmake/modules/falcoctl.cmake +++ b/cmake/modules/falcoctl.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/falcosecurity-libs-repo/CMakeLists.txt b/cmake/modules/falcosecurity-libs-repo/CMakeLists.txt index 54f35e3d781..748737c7b43 100644 --- a/cmake/modules/falcosecurity-libs-repo/CMakeLists.txt +++ b/cmake/modules/falcosecurity-libs-repo/CMakeLists.txt @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake index 34f868b2542..f5a5621c2cc 100644 --- a/cmake/modules/falcosecurity-libs.cmake +++ b/cmake/modules/falcosecurity-libs.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/libyaml.cmake b/cmake/modules/libyaml.cmake index 2c7c4cc1afa..b14ac5333f1 100644 --- a/cmake/modules/libyaml.cmake +++ b/cmake/modules/libyaml.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/cmake/modules/njson.cmake b/cmake/modules/njson.cmake index 1009da150d0..f4b3c79f985 100644 --- a/cmake/modules/njson.cmake +++ b/cmake/modules/njson.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/plugins.cmake b/cmake/modules/plugins.cmake index 803af1d3c16..27a6d1b0869 100644 --- a/cmake/modules/plugins.cmake +++ b/cmake/modules/plugins.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/rules.cmake b/cmake/modules/rules.cmake index 1559c935548..2e996525065 100644 --- a/cmake/modules/rules.cmake +++ b/cmake/modules/rules.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/static-analysis.cmake b/cmake/modules/static-analysis.cmake index c4954022f41..8ecf6f2771d 100644 --- a/cmake/modules/static-analysis.cmake +++ b/cmake/modules/static-analysis.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 The Falco Authors. +# +# 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. +# + # create the reports folder file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/static-analysis-reports) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/static-analysis-reports/cppcheck) diff --git a/cmake/modules/yaml-cpp.cmake b/cmake/modules/yaml-cpp.cmake index b565ab706e5..79a46aa686d 100644 --- a/cmake/modules/yaml-cpp.cmake +++ b/cmake/modules/yaml-cpp.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/docker/driver-loader-legacy/docker-entrypoint.sh b/docker/driver-loader-legacy/docker-entrypoint.sh index 86659bd3409..cea5eac24b0 100755 --- a/docker/driver-loader-legacy/docker-entrypoint.sh +++ b/docker/driver-loader-legacy/docker-entrypoint.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/docker/driver-loader/docker-entrypoint.sh b/docker/driver-loader/docker-entrypoint.sh index 520dfa984dd..cea5eac24b0 100755 --- a/docker/driver-loader/docker-entrypoint.sh +++ b/docker/driver-loader/docker-entrypoint.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -25,4 +26,4 @@ do ln -s "$i" "/usr/src/$base" done -/usr/bin/falco-driver-loader "$@" \ No newline at end of file +/usr/bin/falco-driver-loader "$@" diff --git a/docker/falco/docker-entrypoint.sh b/docker/falco/docker-entrypoint.sh index 23b98d3c2ed..dbf9fcef9e2 100755 --- a/docker/falco/docker-entrypoint.sh +++ b/docker/falco/docker-entrypoint.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -33,4 +34,4 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then /usr/bin/falco-driver-loader "${falco_driver_loader_option_arr[@]}" fi -exec "$@" \ No newline at end of file +exec "$@" diff --git a/falco.yaml b/falco.yaml index 79c713e8f4d..829fd486850 100644 --- a/falco.yaml +++ b/falco.yaml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index b1048d3d00d..4acf81d01d9 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2021 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/debian/postinst.in b/scripts/debian/postinst.in index 72bd5dd739b..425981b5afb 100755 --- a/scripts/debian/postinst.in +++ b/scripts/debian/postinst.in @@ -1,6 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/debian/postrm.in b/scripts/debian/postrm.in index 16bef26fb82..ede751a1ad2 100755 --- a/scripts/debian/postrm.in +++ b/scripts/debian/postrm.in @@ -1,6 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/debian/prerm.in b/scripts/debian/prerm.in index 137f81e2f87..6015aeee402 100755 --- a/scripts/debian/prerm.in +++ b/scripts/debian/prerm.in @@ -1,6 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 10ce487c319..1006fda01d3 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -1,6 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/ignored-calls.sh b/scripts/ignored-calls.sh index ce66f04cf27..708960e202c 100755 --- a/scripts/ignored-calls.sh +++ b/scripts/ignored-calls.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index bf1303c56f2..58ed2ec7c73 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/rpm/postuninstall.in b/scripts/rpm/postuninstall.in index 58626323530..5bda655303c 100755 --- a/scripts/rpm/postuninstall.in +++ b/scripts/rpm/postuninstall.in @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/rpm/preuninstall.in b/scripts/rpm/preuninstall.in index 46ff293878f..7d2f457f372 100755 --- a/scripts/rpm/preuninstall.in +++ b/scripts/rpm/preuninstall.in @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 18b3815b4b5..69a568530a4 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/unit_tests/engine/test_falco_utils.cpp b/unit_tests/engine/test_falco_utils.cpp index bf22b271702..e84cc661768 100644 --- a/unit_tests/engine/test_falco_utils.cpp +++ b/unit_tests/engine/test_falco_utils.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/engine/test_filter_details_resolver.cpp b/unit_tests/engine/test_filter_details_resolver.cpp index d83c100d44b..28366ded0e6 100644 --- a/unit_tests/engine/test_filter_details_resolver.cpp +++ b/unit_tests/engine/test_filter_details_resolver.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -46,4 +47,4 @@ TEST(DetailsResolver, resolve_ast) // Assert lists ASSERT_EQ(details.lists.size(), 1); ASSERT_NE(details.lists.find("known_procs"), details.lists.end()); -} \ No newline at end of file +} diff --git a/unit_tests/engine/test_filter_macro_resolver.cpp b/unit_tests/engine/test_filter_macro_resolver.cpp index 8f9b0d105be..fb66933d138 100644 --- a/unit_tests/engine/test_filter_macro_resolver.cpp +++ b/unit_tests/engine/test_filter_macro_resolver.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/engine/test_filter_warning_resolver.cpp b/unit_tests/engine/test_filter_warning_resolver.cpp index ada768b5041..71131bda87e 100644 --- a/unit_tests/engine/test_filter_warning_resolver.cpp +++ b/unit_tests/engine/test_filter_warning_resolver.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/engine/test_plugin_requirements.cpp b/unit_tests/engine/test_plugin_requirements.cpp index 63a10055251..74816086256 100644 --- a/unit_tests/engine/test_plugin_requirements.cpp +++ b/unit_tests/engine/test_plugin_requirements.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/engine/test_rulesets.cpp b/unit_tests/engine/test_rulesets.cpp index 67e02657f49..d0218b45d2a 100644 --- a/unit_tests/engine/test_rulesets.cpp +++ b/unit_tests/engine/test_rulesets.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/falco/app/actions/app_action_helpers.h b/unit_tests/falco/app/actions/app_action_helpers.h index 7e5cf026583..7467efee433 100644 --- a/unit_tests/falco/app/actions/app_action_helpers.h +++ b/unit_tests/falco/app/actions/app_action_helpers.h @@ -1,3 +1,19 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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. +*/ #pragma once #include #include diff --git a/unit_tests/falco/app/actions/test_configure_interesting_sets.cpp b/unit_tests/falco/app/actions/test_configure_interesting_sets.cpp index c98192bce40..277832d7821 100644 --- a/unit_tests/falco/app/actions/test_configure_interesting_sets.cpp +++ b/unit_tests/falco/app/actions/test_configure_interesting_sets.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/falco/app/actions/test_configure_syscall_buffer_num.cpp b/unit_tests/falco/app/actions/test_configure_syscall_buffer_num.cpp index ccba0e9eac5..5f15e6d31a8 100644 --- a/unit_tests/falco/app/actions/test_configure_syscall_buffer_num.cpp +++ b/unit_tests/falco/app/actions/test_configure_syscall_buffer_num.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/falco/app/actions/test_select_event_sources.cpp b/unit_tests/falco/app/actions/test_select_event_sources.cpp index f7dca5881a2..8ae4b58eda1 100644 --- a/unit_tests/falco/app/actions/test_select_event_sources.cpp +++ b/unit_tests/falco/app/actions/test_select_event_sources.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/unit_tests/falco/test_atomic_signal_handler.cpp b/unit_tests/falco/test_atomic_signal_handler.cpp index a2e8accfe9d..5d08a06c94c 100644 --- a/unit_tests/falco/test_atomic_signal_handler.cpp +++ b/unit_tests/falco/test_atomic_signal_handler.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -128,4 +129,4 @@ TEST(AtomicSignalHandler, handle_and_reset) ASSERT_FALSE(handler.triggered()); ASSERT_FALSE(handler.handled()); ASSERT_FALSE(handler.handle(do_nothing)); -} \ No newline at end of file +} diff --git a/unit_tests/falco/test_configuration.cpp b/unit_tests/falco/test_configuration.cpp index d3e95a776c7..d109005e070 100644 --- a/unit_tests/falco/test_configuration.cpp +++ b/unit_tests/falco/test_configuration.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/engine/CMakeLists.txt b/userspace/engine/CMakeLists.txt index 8995f83bbd1..8aecac06738 100644 --- a/userspace/engine/CMakeLists.txt +++ b/userspace/engine/CMakeLists.txt @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/userspace/engine/banned.h b/userspace/engine/banned.h index 829d32e1e8f..31ee57a83ef 100644 --- a/userspace/engine/banned.h +++ b/userspace/engine/banned.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/engine/evttype_index_ruleset.cpp b/userspace/engine/evttype_index_ruleset.cpp index 2a1839f4ade..4a4311973e3 100644 --- a/userspace/engine/evttype_index_ruleset.cpp +++ b/userspace/engine/evttype_index_ruleset.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/evttype_index_ruleset.h b/userspace/engine/evttype_index_ruleset.h index 0d2df0f6a2f..6eac80786ed 100644 --- a/userspace/engine/evttype_index_ruleset.h +++ b/userspace/engine/evttype_index_ruleset.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_common.cpp b/userspace/engine/falco_common.cpp index 9cf27d636b3..f1c1fc139c2 100644 --- a/userspace/engine/falco_common.cpp +++ b/userspace/engine/falco_common.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -116,4 +117,4 @@ bool falco_common::parse_rule_matching(std::string v, rule_matching& out) } } return false; -} \ No newline at end of file +} diff --git a/userspace/engine/falco_common.h b/userspace/engine/falco_common.h index acc1030eb60..aa4f39e93e9 100644 --- a/userspace/engine/falco_common.h +++ b/userspace/engine/falco_common.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index e1465c5779d..505237aa63d 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_engine.h b/userspace/engine/falco_engine.h index 36f58221426..cb24e3c6c12 100644 --- a/userspace/engine/falco_engine.h +++ b/userspace/engine/falco_engine.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_engine_version.h b/userspace/engine/falco_engine_version.h index f3937071cfc..94b811c9303 100644 --- a/userspace/engine/falco_engine_version.h +++ b/userspace/engine/falco_engine_version.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/engine/falco_load_result.cpp b/userspace/engine/falco_load_result.cpp index 7e0f384ec69..fec4b051af9 100644 --- a/userspace/engine/falco_load_result.cpp +++ b/userspace/engine/falco_load_result.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_load_result.h b/userspace/engine/falco_load_result.h index 0f831562c46..a2072be9187 100644 --- a/userspace/engine/falco_load_result.h +++ b/userspace/engine/falco_load_result.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_rule.h b/userspace/engine/falco_rule.h index 079221f57f7..482f1357159 100644 --- a/userspace/engine/falco_rule.h +++ b/userspace/engine/falco_rule.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_source.h b/userspace/engine/falco_source.h index 7823f7b8971..b81eb8b271d 100644 --- a/userspace/engine/falco_source.h +++ b/userspace/engine/falco_source.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/falco_utils.cpp b/userspace/engine/falco_utils.cpp index b4618939e3f..90effe1426b 100644 --- a/userspace/engine/falco_utils.cpp +++ b/userspace/engine/falco_utils.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2016-2018 The Falco Authors. diff --git a/userspace/engine/falco_utils.h b/userspace/engine/falco_utils.h index 9c149b08301..38bc5c9f6fa 100644 --- a/userspace/engine/falco_utils.h +++ b/userspace/engine/falco_utils.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2016-2018 The Falco Authors. diff --git a/userspace/engine/filter_details_resolver.cpp b/userspace/engine/filter_details_resolver.cpp index e7c9757c5e8..7130ab11d53 100644 --- a/userspace/engine/filter_details_resolver.cpp +++ b/userspace/engine/filter_details_resolver.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -100,4 +101,4 @@ void filter_details_resolver::visitor::visit(ast::value_expr* e) m_details.macros.insert(e->value); } -} \ No newline at end of file +} diff --git a/userspace/engine/filter_details_resolver.h b/userspace/engine/filter_details_resolver.h index 01a9b33c3e9..bbf2534a789 100644 --- a/userspace/engine/filter_details_resolver.h +++ b/userspace/engine/filter_details_resolver.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/engine/filter_macro_resolver.cpp b/userspace/engine/filter_macro_resolver.cpp index b90c80d226f..556c6b95c82 100644 --- a/userspace/engine/filter_macro_resolver.cpp +++ b/userspace/engine/filter_macro_resolver.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/filter_macro_resolver.h b/userspace/engine/filter_macro_resolver.h index 4c3888e6cae..e7377705ffe 100644 --- a/userspace/engine/filter_macro_resolver.h +++ b/userspace/engine/filter_macro_resolver.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/filter_ruleset.h b/userspace/engine/filter_ruleset.h index 2bceb38cf51..e84af57f285 100644 --- a/userspace/engine/filter_ruleset.h +++ b/userspace/engine/filter_ruleset.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/filter_warning_resolver.cpp b/userspace/engine/filter_warning_resolver.cpp index 55be306b3c8..45e477a765d 100644 --- a/userspace/engine/filter_warning_resolver.cpp +++ b/userspace/engine/filter_warning_resolver.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/filter_warning_resolver.h b/userspace/engine/filter_warning_resolver.h index 8bc796e1798..8479b7e491d 100644 --- a/userspace/engine/filter_warning_resolver.h +++ b/userspace/engine/filter_warning_resolver.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/formats.cpp b/userspace/engine/formats.cpp index ea487572dca..90877f60e67 100644 --- a/userspace/engine/formats.cpp +++ b/userspace/engine/formats.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/formats.h b/userspace/engine/formats.h index c6e42222bfe..a4306b4e353 100644 --- a/userspace/engine/formats.h +++ b/userspace/engine/formats.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/indexed_vector.h b/userspace/engine/indexed_vector.h index b4f9bac7923..13a25a9bcfe 100644 --- a/userspace/engine/indexed_vector.h +++ b/userspace/engine/indexed_vector.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/json_evt.cpp b/userspace/engine/json_evt.cpp index 5b9250d9b6c..9a5b843327f 100644 --- a/userspace/engine/json_evt.cpp +++ b/userspace/engine/json_evt.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/json_evt.h b/userspace/engine/json_evt.h index ae6f635644c..254d7e59f72 100644 --- a/userspace/engine/json_evt.h +++ b/userspace/engine/json_evt.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader.cpp b/userspace/engine/rule_loader.cpp index 68b427e99b1..d4076412910 100644 --- a/userspace/engine/rule_loader.cpp +++ b/userspace/engine/rule_loader.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader.h b/userspace/engine/rule_loader.h index 3fcabb81556..44481fc50df 100644 --- a/userspace/engine/rule_loader.h +++ b/userspace/engine/rule_loader.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_collector.cpp b/userspace/engine/rule_loader_collector.cpp index 89ed49a4546..ffd52b89f49 100644 --- a/userspace/engine/rule_loader_collector.cpp +++ b/userspace/engine/rule_loader_collector.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_collector.h b/userspace/engine/rule_loader_collector.h index bc773813548..d5e3402c264 100644 --- a/userspace/engine/rule_loader_collector.h +++ b/userspace/engine/rule_loader_collector.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_compiler.cpp b/userspace/engine/rule_loader_compiler.cpp index e6aa90a3c8b..074c9da7bdd 100644 --- a/userspace/engine/rule_loader_compiler.cpp +++ b/userspace/engine/rule_loader_compiler.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_compiler.h b/userspace/engine/rule_loader_compiler.h index 8cc04080994..699d74b6159 100644 --- a/userspace/engine/rule_loader_compiler.h +++ b/userspace/engine/rule_loader_compiler.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_reader.cpp b/userspace/engine/rule_loader_reader.cpp index 71ebfde4d76..f12ab870a83 100644 --- a/userspace/engine/rule_loader_reader.cpp +++ b/userspace/engine/rule_loader_reader.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/rule_loader_reader.h b/userspace/engine/rule_loader_reader.h index f61dc630fd2..d455650eab4 100644 --- a/userspace/engine/rule_loader_reader.h +++ b/userspace/engine/rule_loader_reader.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -42,4 +43,4 @@ class reader virtual bool read(configuration& cfg, collector& loader); }; -}; // namespace rule_loader \ No newline at end of file +}; // namespace rule_loader diff --git a/userspace/engine/stats_manager.cpp b/userspace/engine/stats_manager.cpp index 7d07e7c0905..261f8ac1021 100644 --- a/userspace/engine/stats_manager.cpp +++ b/userspace/engine/stats_manager.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/engine/stats_manager.h b/userspace/engine/stats_manager.h index 48018e9c0da..d07ad44ec19 100644 --- a/userspace/engine/stats_manager.h +++ b/userspace/engine/stats_manager.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -70,4 +71,4 @@ class stats_manager std::atomic m_total; std::vector>> m_by_priority; std::vector>> m_by_rule_id; -}; \ No newline at end of file +}; diff --git a/userspace/falco/CMakeLists.txt b/userspace/falco/CMakeLists.txt index 171c4c1af68..973655f2dcc 100644 --- a/userspace/falco/CMakeLists.txt +++ b/userspace/falco/CMakeLists.txt @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 The Falco Authors. # # 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 diff --git a/userspace/falco/app/actions/actions.h b/userspace/falco/app/actions/actions.h index 840b6d76fc6..5f8db767fc8 100644 --- a/userspace/falco/app/actions/actions.h +++ b/userspace/falco/app/actions/actions.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/configure_interesting_sets.cpp b/userspace/falco/app/actions/configure_interesting_sets.cpp index ac8ccae520c..8f9c31de3f0 100644 --- a/userspace/falco/app/actions/configure_interesting_sets.cpp +++ b/userspace/falco/app/actions/configure_interesting_sets.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/configure_syscall_buffer_num.cpp b/userspace/falco/app/actions/configure_syscall_buffer_num.cpp index b06f3bba280..27b1ef67620 100644 --- a/userspace/falco/app/actions/configure_syscall_buffer_num.cpp +++ b/userspace/falco/app/actions/configure_syscall_buffer_num.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/configure_syscall_buffer_size.cpp b/userspace/falco/app/actions/configure_syscall_buffer_size.cpp index 11be185fbe5..11468045a11 100644 --- a/userspace/falco/app/actions/configure_syscall_buffer_size.cpp +++ b/userspace/falco/app/actions/configure_syscall_buffer_size.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/create_requested_paths.cpp b/userspace/falco/app/actions/create_requested_paths.cpp index 55bada74a70..e87f45f054e 100644 --- a/userspace/falco/app/actions/create_requested_paths.cpp +++ b/userspace/falco/app/actions/create_requested_paths.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/create_signal_handlers.cpp b/userspace/falco/app/actions/create_signal_handlers.cpp index f68798ac136..b688ec6188e 100644 --- a/userspace/falco/app/actions/create_signal_handlers.cpp +++ b/userspace/falco/app/actions/create_signal_handlers.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/helpers.h b/userspace/falco/app/actions/helpers.h index 6c8c22a7ebc..6dfc229c920 100644 --- a/userspace/falco/app/actions/helpers.h +++ b/userspace/falco/app/actions/helpers.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/helpers_generic.cpp b/userspace/falco/app/actions/helpers_generic.cpp index 73500dca5f2..75217d801aa 100644 --- a/userspace/falco/app/actions/helpers_generic.cpp +++ b/userspace/falco/app/actions/helpers_generic.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/helpers_inspector.cpp b/userspace/falco/app/actions/helpers_inspector.cpp index f6515a2daac..bd7b682fbaa 100644 --- a/userspace/falco/app/actions/helpers_inspector.cpp +++ b/userspace/falco/app/actions/helpers_inspector.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/init_clients.cpp b/userspace/falco/app/actions/init_clients.cpp index 9bfa794050f..48f53da45b6 100644 --- a/userspace/falco/app/actions/init_clients.cpp +++ b/userspace/falco/app/actions/init_clients.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/init_falco_engine.cpp b/userspace/falco/app/actions/init_falco_engine.cpp index a32e804fb63..358c60e2c70 100644 --- a/userspace/falco/app/actions/init_falco_engine.cpp +++ b/userspace/falco/app/actions/init_falco_engine.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/init_inspectors.cpp b/userspace/falco/app/actions/init_inspectors.cpp index 88dea76e82e..5e958fc21c4 100644 --- a/userspace/falco/app/actions/init_inspectors.cpp +++ b/userspace/falco/app/actions/init_inspectors.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/init_outputs.cpp b/userspace/falco/app/actions/init_outputs.cpp index 7fd32d52b83..2e8afbedd08 100644 --- a/userspace/falco/app/actions/init_outputs.cpp +++ b/userspace/falco/app/actions/init_outputs.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/list_fields.cpp b/userspace/falco/app/actions/list_fields.cpp index 0348b0d2499..6b0707af731 100644 --- a/userspace/falco/app/actions/list_fields.cpp +++ b/userspace/falco/app/actions/list_fields.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/list_plugins.cpp b/userspace/falco/app/actions/list_plugins.cpp index 3aee1d75caa..8c9c6702cac 100644 --- a/userspace/falco/app/actions/list_plugins.cpp +++ b/userspace/falco/app/actions/list_plugins.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/load_config.cpp b/userspace/falco/app/actions/load_config.cpp index b5730b80f21..8f093912f2d 100644 --- a/userspace/falco/app/actions/load_config.cpp +++ b/userspace/falco/app/actions/load_config.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -78,4 +79,4 @@ falco::app::run_result falco::app::actions::require_config_file(falco::app::stat } #endif // __EMSCRIPTEN__ return run_result::ok(); -} \ No newline at end of file +} diff --git a/userspace/falco/app/actions/load_plugins.cpp b/userspace/falco/app/actions/load_plugins.cpp index 9086db00c7d..2ee16f68756 100644 --- a/userspace/falco/app/actions/load_plugins.cpp +++ b/userspace/falco/app/actions/load_plugins.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/load_rules_files.cpp b/userspace/falco/app/actions/load_rules_files.cpp index 49f1b0b7b1c..592b018471b 100644 --- a/userspace/falco/app/actions/load_rules_files.cpp +++ b/userspace/falco/app/actions/load_rules_files.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/pidfile.cpp b/userspace/falco/app/actions/pidfile.cpp index 2116d65f897..109f2e6eb23 100644 --- a/userspace/falco/app/actions/pidfile.cpp +++ b/userspace/falco/app/actions/pidfile.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_generated_gvisor_config.cpp b/userspace/falco/app/actions/print_generated_gvisor_config.cpp index f12bb567f2f..758547e6a92 100644 --- a/userspace/falco/app/actions/print_generated_gvisor_config.cpp +++ b/userspace/falco/app/actions/print_generated_gvisor_config.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_help.cpp b/userspace/falco/app/actions/print_help.cpp index 9cfdd14e668..ac6b5b4c6db 100644 --- a/userspace/falco/app/actions/print_help.cpp +++ b/userspace/falco/app/actions/print_help.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_ignored_events.cpp b/userspace/falco/app/actions/print_ignored_events.cpp index f77e33fd9d8..44c2d3757e6 100644 --- a/userspace/falco/app/actions/print_ignored_events.cpp +++ b/userspace/falco/app/actions/print_ignored_events.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_page_size.cpp b/userspace/falco/app/actions/print_page_size.cpp index bee0d3e961d..508c6252bdd 100644 --- a/userspace/falco/app/actions/print_page_size.cpp +++ b/userspace/falco/app/actions/print_page_size.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_plugin_info.cpp b/userspace/falco/app/actions/print_plugin_info.cpp index 35b5b7fa5ce..8251ef1f620 100644 --- a/userspace/falco/app/actions/print_plugin_info.cpp +++ b/userspace/falco/app/actions/print_plugin_info.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -106,4 +107,4 @@ falco::app::run_result falco::app::actions::print_plugin_info(falco::app::state& } return run_result::ok(); -} \ No newline at end of file +} diff --git a/userspace/falco/app/actions/print_support.cpp b/userspace/falco/app/actions/print_support.cpp index d3e8c645e38..0f18d716a78 100644 --- a/userspace/falco/app/actions/print_support.cpp +++ b/userspace/falco/app/actions/print_support.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_syscall_events.cpp b/userspace/falco/app/actions/print_syscall_events.cpp index e3ef70e55bc..71d2b0dbdbd 100644 --- a/userspace/falco/app/actions/print_syscall_events.cpp +++ b/userspace/falco/app/actions/print_syscall_events.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/print_version.cpp b/userspace/falco/app/actions/print_version.cpp index 6aabbcee9e3..bcf1cbf346b 100644 --- a/userspace/falco/app/actions/print_version.cpp +++ b/userspace/falco/app/actions/print_version.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/process_events.cpp b/userspace/falco/app/actions/process_events.cpp index 50ac60d7c31..f5fdec4557e 100644 --- a/userspace/falco/app/actions/process_events.cpp +++ b/userspace/falco/app/actions/process_events.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/select_event_sources.cpp b/userspace/falco/app/actions/select_event_sources.cpp index 78e52a6ef24..ff1b3556c59 100644 --- a/userspace/falco/app/actions/select_event_sources.cpp +++ b/userspace/falco/app/actions/select_event_sources.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -65,4 +66,4 @@ falco::app::run_result falco::app::actions::select_event_sources(falco::app::sta } return run_result::ok(); -} \ No newline at end of file +} diff --git a/userspace/falco/app/actions/start_grpc_server.cpp b/userspace/falco/app/actions/start_grpc_server.cpp index 8c432e0f018..7d52aad955a 100644 --- a/userspace/falco/app/actions/start_grpc_server.cpp +++ b/userspace/falco/app/actions/start_grpc_server.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/start_webserver.cpp b/userspace/falco/app/actions/start_webserver.cpp index 7805b0fc491..a6f5b0c3073 100644 --- a/userspace/falco/app/actions/start_webserver.cpp +++ b/userspace/falco/app/actions/start_webserver.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/actions/validate_rules_files.cpp b/userspace/falco/app/actions/validate_rules_files.cpp index 2b4851dbac2..afc1e6f4f53 100644 --- a/userspace/falco/app/actions/validate_rules_files.cpp +++ b/userspace/falco/app/actions/validate_rules_files.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/app.cpp b/userspace/falco/app/app.cpp index b18000e5e98..b35674bd986 100644 --- a/userspace/falco/app/app.cpp +++ b/userspace/falco/app/app.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/app.h b/userspace/falco/app/app.h index c8f11f3c305..016f2959fe0 100644 --- a/userspace/falco/app/app.h +++ b/userspace/falco/app/app.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/options.cpp b/userspace/falco/app/options.cpp index 63818046be2..01d95282389 100644 --- a/userspace/falco/app/options.cpp +++ b/userspace/falco/app/options.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/options.h b/userspace/falco/app/options.h index e9183446fc7..2c547449162 100644 --- a/userspace/falco/app/options.h +++ b/userspace/falco/app/options.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/restart_handler.cpp b/userspace/falco/app/restart_handler.cpp index da44840d7e1..fcd92de6da6 100644 --- a/userspace/falco/app/restart_handler.cpp +++ b/userspace/falco/app/restart_handler.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/restart_handler.h b/userspace/falco/app/restart_handler.h index 6a81adae8f6..da46abed5f7 100644 --- a/userspace/falco/app/restart_handler.h +++ b/userspace/falco/app/restart_handler.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/run_result.h b/userspace/falco/app/run_result.h index cffbe9686c8..506febd8c52 100644 --- a/userspace/falco/app/run_result.h +++ b/userspace/falco/app/run_result.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/signals.h b/userspace/falco/app/signals.h index aa85f0c3027..a95ea6b1b6f 100644 --- a/userspace/falco/app/signals.h +++ b/userspace/falco/app/signals.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/app/state.h b/userspace/falco/app/state.h index cff9f484278..dd74c1fd89e 100644 --- a/userspace/falco/app/state.h +++ b/userspace/falco/app/state.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/atomic_signal_handler.h b/userspace/falco/atomic_signal_handler.h index fa182731b6e..001f15310a0 100644 --- a/userspace/falco/atomic_signal_handler.h +++ b/userspace/falco/atomic_signal_handler.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/config_falco.h.in b/userspace/falco/config_falco.h.in index 398b1d784f5..9c090b22a8a 100644 --- a/userspace/falco/config_falco.h.in +++ b/userspace/falco/config_falco.h.in @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/configuration.cpp b/userspace/falco/configuration.cpp index 3e45b19e0f9..a884734a97b 100644 --- a/userspace/falco/configuration.cpp +++ b/userspace/falco/configuration.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/configuration.h b/userspace/falco/configuration.h index c1a595d0a96..2a2ed20cfd8 100644 --- a/userspace/falco/configuration.h +++ b/userspace/falco/configuration.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/event_drops.cpp b/userspace/falco/event_drops.cpp index 9b37afdd8b1..07509050e7f 100644 --- a/userspace/falco/event_drops.cpp +++ b/userspace/falco/event_drops.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2021 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/event_drops.h b/userspace/falco/event_drops.h index ff8d78b62d3..31255bc06a0 100644 --- a/userspace/falco/event_drops.h +++ b/userspace/falco/event_drops.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2021 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/falco.cpp b/userspace/falco/falco.cpp index 71d42b4000d..c12040eed7b 100644 --- a/userspace/falco/falco.cpp +++ b/userspace/falco/falco.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/falco_outputs.cpp b/userspace/falco/falco_outputs.cpp index 21bef081774..44b3ba31610 100644 --- a/userspace/falco/falco_outputs.cpp +++ b/userspace/falco/falco_outputs.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/falco_outputs.h b/userspace/falco/falco_outputs.h index 45d9314166c..6a9c8b3cc8e 100644 --- a/userspace/falco/falco_outputs.h +++ b/userspace/falco/falco_outputs.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/falco_semaphore.h b/userspace/falco/falco_semaphore.h index f60f1e877db..aecf11497de 100644 --- a/userspace/falco/falco_semaphore.h +++ b/userspace/falco/falco_semaphore.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_context.cpp b/userspace/falco/grpc_context.cpp index c0411e2eae7..0709274afa2 100644 --- a/userspace/falco/grpc_context.cpp +++ b/userspace/falco/grpc_context.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_context.h b/userspace/falco/grpc_context.h index 1320d41d430..fd402821dda 100644 --- a/userspace/falco/grpc_context.h +++ b/userspace/falco/grpc_context.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_queue.h b/userspace/falco/grpc_queue.h index c05d3327e6e..2f6c02eeb86 100644 --- a/userspace/falco/grpc_queue.h +++ b/userspace/falco/grpc_queue.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_request_context.cpp b/userspace/falco/grpc_request_context.cpp index 194fb442975..ec26d28120b 100644 --- a/userspace/falco/grpc_request_context.cpp +++ b/userspace/falco/grpc_request_context.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2016-2019 The Falco Authors diff --git a/userspace/falco/grpc_request_context.h b/userspace/falco/grpc_request_context.h index 1b4878ecd09..4f279fb7551 100644 --- a/userspace/falco/grpc_request_context.h +++ b/userspace/falco/grpc_request_context.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2016-2019 The Falco Authors diff --git a/userspace/falco/grpc_server.cpp b/userspace/falco/grpc_server.cpp index e116963566c..a62dc4870e6 100644 --- a/userspace/falco/grpc_server.cpp +++ b/userspace/falco/grpc_server.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_server.h b/userspace/falco/grpc_server.h index 352204e1888..9df21998bba 100644 --- a/userspace/falco/grpc_server.h +++ b/userspace/falco/grpc_server.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_server_impl.cpp b/userspace/falco/grpc_server_impl.cpp index f9bb941315e..b298ad91306 100644 --- a/userspace/falco/grpc_server_impl.cpp +++ b/userspace/falco/grpc_server_impl.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/grpc_server_impl.h b/userspace/falco/grpc_server_impl.h index b085f76ecb7..36f8d57423c 100644 --- a/userspace/falco/grpc_server_impl.h +++ b/userspace/falco/grpc_server_impl.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2019 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/logger.cpp b/userspace/falco/logger.cpp index 50cff5699a3..48ffd601616 100644 --- a/userspace/falco/logger.cpp +++ b/userspace/falco/logger.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/logger.h b/userspace/falco/logger.h index 1cd95dc2d3c..febadd38350 100644 --- a/userspace/falco/logger.h +++ b/userspace/falco/logger.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs.h b/userspace/falco/outputs.h index 0ad01d85dae..ac00f4544fa 100644 --- a/userspace/falco/outputs.h +++ b/userspace/falco/outputs.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs.proto b/userspace/falco/outputs.proto index b2d35adcccb..0e72f9e0efb 100644 --- a/userspace/falco/outputs.proto +++ b/userspace/falco/outputs.proto @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -52,4 +53,4 @@ message response { string hostname = 7; repeated string tags = 8; string source = 9; -} \ No newline at end of file +} diff --git a/userspace/falco/outputs_file.cpp b/userspace/falco/outputs_file.cpp index fa22fbc6b05..c6131a33602 100644 --- a/userspace/falco/outputs_file.cpp +++ b/userspace/falco/outputs_file.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_file.h b/userspace/falco/outputs_file.h index 0fff6ff7581..0849c84636d 100644 --- a/userspace/falco/outputs_file.h +++ b/userspace/falco/outputs_file.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_grpc.cpp b/userspace/falco/outputs_grpc.cpp index 29dfaa50049..5ffb80b1500 100644 --- a/userspace/falco/outputs_grpc.cpp +++ b/userspace/falco/outputs_grpc.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -103,4 +104,4 @@ void falco::outputs::output_grpc::output(const message *msg) *source = msg->source; falco::grpc::queue::get().push(grpc_res); -} \ No newline at end of file +} diff --git a/userspace/falco/outputs_grpc.h b/userspace/falco/outputs_grpc.h index 6cfb4c80906..90166b2d756 100644 --- a/userspace/falco/outputs_grpc.h +++ b/userspace/falco/outputs_grpc.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_http.cpp b/userspace/falco/outputs_http.cpp index b07c41db11f..e735b235b58 100644 --- a/userspace/falco/outputs_http.cpp +++ b/userspace/falco/outputs_http.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_http.h b/userspace/falco/outputs_http.h index 0e715dcbebc..1f17269e659 100644 --- a/userspace/falco/outputs_http.h +++ b/userspace/falco/outputs_http.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_program.cpp b/userspace/falco/outputs_program.cpp index 3c4492c5287..cc7f44c9292 100644 --- a/userspace/falco/outputs_program.cpp +++ b/userspace/falco/outputs_program.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_program.h b/userspace/falco/outputs_program.h index 1b6ba33d73f..620b8a6a0b4 100644 --- a/userspace/falco/outputs_program.h +++ b/userspace/falco/outputs_program.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_stdout.cpp b/userspace/falco/outputs_stdout.cpp index e2b962e2ceb..9eb8e957c67 100644 --- a/userspace/falco/outputs_stdout.cpp +++ b/userspace/falco/outputs_stdout.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_stdout.h b/userspace/falco/outputs_stdout.h index e16bdb50ea9..34be5292e8b 100644 --- a/userspace/falco/outputs_stdout.h +++ b/userspace/falco/outputs_stdout.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_syslog.cpp b/userspace/falco/outputs_syslog.cpp index dc779bf9766..99578d3e46d 100644 --- a/userspace/falco/outputs_syslog.cpp +++ b/userspace/falco/outputs_syslog.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors +Copyright (C) 2023 The Falco Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/outputs_syslog.h b/userspace/falco/outputs_syslog.h index 6ea92aff2b3..8d22b8412c3 100644 --- a/userspace/falco/outputs_syslog.h +++ b/userspace/falco/outputs_syslog.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/schema.proto b/userspace/falco/schema.proto index 10e564bc5c5..00939c12de7 100644 --- a/userspace/falco/schema.proto +++ b/userspace/falco/schema.proto @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/stats_writer.cpp b/userspace/falco/stats_writer.cpp index c4589a8fbaa..dc83ab9cb13 100644 --- a/userspace/falco/stats_writer.cpp +++ b/userspace/falco/stats_writer.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/stats_writer.h b/userspace/falco/stats_writer.h index 42a183e7825..b126367b532 100644 --- a/userspace/falco/stats_writer.h +++ b/userspace/falco/stats_writer.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. @@ -153,4 +154,4 @@ class stats_writer // note: in this way, only collectors can push into the queue friend class stats_writer::collector; -}; \ No newline at end of file +}; diff --git a/userspace/falco/version.proto b/userspace/falco/version.proto index a98c1a5c13c..2fb9e43ae0f 100644 --- a/userspace/falco/version.proto +++ b/userspace/falco/version.proto @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/versions_info.cpp b/userspace/falco/versions_info.cpp index c596a8d4f95..7c2ead10cee 100644 --- a/userspace/falco/versions_info.cpp +++ b/userspace/falco/versions_info.cpp @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/versions_info.h b/userspace/falco/versions_info.h index 0f63ac74a78..570a6b3f550 100644 --- a/userspace/falco/versions_info.h +++ b/userspace/falco/versions_info.h @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 /* Copyright (C) 2023 The Falco Authors. diff --git a/userspace/falco/watchdog.h b/userspace/falco/watchdog.h index bb4e03b920b..4527c4a4efc 100644 --- a/userspace/falco/watchdog.h +++ b/userspace/falco/watchdog.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2020 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -93,4 +94,4 @@ class watchdog std::atomic m_timeout; std::atomic m_is_running; std::thread m_thread; -}; \ No newline at end of file +}; diff --git a/userspace/falco/webserver.cpp b/userspace/falco/webserver.cpp index d826436c961..36070f1f79a 100644 --- a/userspace/falco/webserver.cpp +++ b/userspace/falco/webserver.cpp @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/webserver.h b/userspace/falco/webserver.h index eed82e2a4ca..8a2e3a2f6ab 100644 --- a/userspace/falco/webserver.h +++ b/userspace/falco/webserver.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/userspace/falco/yaml_helper.h b/userspace/falco/yaml_helper.h index b8fc0d94ebf..19ff0aacde8 100644 --- a/userspace/falco/yaml_helper.h +++ b/userspace/falco/yaml_helper.h @@ -1,5 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 /* -Copyright (C) 2022 The Falco Authors. +Copyright (C) 2023 The Falco Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.