From 25b834d94864ea6d94ba4cfbb9ad8f46901f409f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:00:10 +0000 Subject: [PATCH 01/12] build(deps): Bump submodules/falcosecurity-rules Bumps [submodules/falcosecurity-rules](https://github.com/falcosecurity/rules) from `43580b4` to `ee5fb38`. - [Release notes](https://github.com/falcosecurity/rules/releases) - [Commits](https://github.com/falcosecurity/rules/compare/43580b4cebd404bbc71a2488480df7c3405e0bfd...ee5fb38eba6cb65dbab74e668e18c28db2b2ff23) --- updated-dependencies: - dependency-name: submodules/falcosecurity-rules dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- submodules/falcosecurity-rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/falcosecurity-rules b/submodules/falcosecurity-rules index 43580b4cebd..ee5fb38eba6 160000 --- a/submodules/falcosecurity-rules +++ b/submodules/falcosecurity-rules @@ -1 +1 @@ -Subproject commit 43580b4cebd404bbc71a2488480df7c3405e0bfd +Subproject commit ee5fb38eba6cb65dbab74e668e18c28db2b2ff23 From 15fd5a4faa0b18589fa1b82f957a694cde8e5d5e Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Mon, 18 Sep 2023 13:37:06 +0000 Subject: [PATCH 02/12] update(build): update falcoctl to 0.6.1 Signed-off-by: Luca Guerra --- cmake/modules/falcoctl.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/modules/falcoctl.cmake b/cmake/modules/falcoctl.cmake index ea5bc0f951a..52585b864a5 100644 --- a/cmake/modules/falcoctl.cmake +++ b/cmake/modules/falcoctl.cmake @@ -15,14 +15,14 @@ include(ExternalProject) string(TOLOWER ${CMAKE_HOST_SYSTEM_NAME} FALCOCTL_SYSTEM_NAME) -set(FALCOCTL_VERSION "0.6.0") +set(FALCOCTL_VERSION "0.6.1") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") set(FALCOCTL_SYSTEM_PROC_GO "amd64") - set(FALCOCTL_HASH "b81c36449b525e1de871288741beeadead021ac133d9b306f0636be1befe58a5") + set(FALCOCTL_HASH "73aa9df700644f56b13a838751e7588eb49febee1c1529cef43b060d96b4b696") else() # aarch64 set(FALCOCTL_SYSTEM_PROC_GO "arm64") - set(FALCOCTL_HASH "6e99fd765f67cdd46fa8c5b2969e97497856d2e615698ced04046c8898187b18") + set(FALCOCTL_HASH "e4d0fb0597f3f0f2ce85a0853dcf52ec8fe084575a490e2f226928558441145b") endif() ExternalProject_Add( From 11236aa27be820e613217ece0a98f1d4561f90c5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:03:16 +0000 Subject: [PATCH 03/12] build(deps): Bump submodules/falcosecurity-rules Bumps [submodules/falcosecurity-rules](https://github.com/falcosecurity/rules) from `ee5fb38` to `bea364e`. - [Release notes](https://github.com/falcosecurity/rules/releases) - [Commits](https://github.com/falcosecurity/rules/compare/ee5fb38eba6cb65dbab74e668e18c28db2b2ff23...bea364ef41e78b64e6936560d12c1c14f42bd111) --- updated-dependencies: - dependency-name: submodules/falcosecurity-rules dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- submodules/falcosecurity-rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/falcosecurity-rules b/submodules/falcosecurity-rules index ee5fb38eba6..bea364ef41e 160000 --- a/submodules/falcosecurity-rules +++ b/submodules/falcosecurity-rules @@ -1 +1 @@ -Subproject commit ee5fb38eba6cb65dbab74e668e18c28db2b2ff23 +Subproject commit bea364ef41e78b64e6936560d12c1c14f42bd111 From 29305dc26a1eb3b03f154820a6a9b92da90526cb Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 19 Sep 2023 11:10:53 +0200 Subject: [PATCH 04/12] chore: bump to latest libs Signed-off-by: Andrea Terzolo --- cmake/modules/falcosecurity-libs.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake index 34f868b2542..b79d2b5c304 100644 --- a/cmake/modules/falcosecurity-libs.cmake +++ b/cmake/modules/falcosecurity-libs.cmake @@ -34,8 +34,8 @@ else() # In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable - # ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..` if(NOT FALCOSECURITY_LIBS_VERSION) - set(FALCOSECURITY_LIBS_VERSION "0.13.0-rc2") - set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=4c3c8e0aecdf992add01c2e1b1347f08036b8414f9bd6501185a3eb44cb8c033") + set(FALCOSECURITY_LIBS_VERSION "0.13.0") + set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=19189e78c03781a118e43a62631e07806525720efd1a94a4ec37aac1dcca4d3f") endif() # cd /path/to/build && cmake /path/to/source From 6a4b634226e20df8d60061672ebcd867e450b28f Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 21 Sep 2023 10:03:12 +0200 Subject: [PATCH 05/12] update(cmake): bumped plugins to latest stable versions. Signed-off-by: Federico Di Pierro --- cmake/modules/plugins.cmake | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cmake/modules/plugins.cmake b/cmake/modules/plugins.cmake index 803af1d3c16..da0b16e57c7 100644 --- a/cmake/modules/plugins.cmake +++ b/cmake/modules/plugins.cmake @@ -23,11 +23,11 @@ if(NOT DEFINED PLUGINS_COMPONENT_NAME) endif() # k8saudit -set(PLUGIN_K8S_AUDIT_VERSION "0.6.0") +set(PLUGIN_K8S_AUDIT_VERSION "0.6.1") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_K8S_AUDIT_HASH "560e8f8dc8fd169e524d95462d65b5227415a7a157442e82383c7d9f456ce58f") + set(PLUGIN_K8S_AUDIT_HASH "e2908ebf2c03feecd26307ceab55aec9cae1cbc63d6aa05e147d8786e7670fb0") else() # aarch64 - set(PLUGIN_K8S_AUDIT_HASH "e4757af1bac42b21c5937340790841dedc3805759050a6ffb22d1761e1dd1d31") + set(PLUGIN_K8S_AUDIT_HASH "8987a995fa09518aebc488ba549448166d605596c2d6478c10415a9d9f5f05dd") endif() ExternalProject_Add( @@ -43,7 +43,7 @@ install(FILES "${PROJECT_BINARY_DIR}/k8saudit-plugin-prefix/src/k8saudit-plugin/ ExternalProject_Add( k8saudit-rules URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/k8saudit-rules-${PLUGIN_K8S_AUDIT_VERSION}.tar.gz" - URL_HASH "SHA256=44cee2fb88312d889213e1dbe1b9902d0a3f5c594cce73b2cac8e54fb51321b7" + URL_HASH "SHA256=36321b3f1d7969926073a4d40bbbb7b4b28805b038c067f140795210ab641161" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "") @@ -51,11 +51,11 @@ ExternalProject_Add( install(FILES "${PROJECT_BINARY_DIR}/k8saudit-rules-prefix/src/k8saudit-rules/k8s_audit_rules.yaml" DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${PLUGINS_COMPONENT_NAME}") # cloudtrail -set(PLUGIN_CLOUDTRAIL_VERSION "0.8.0") +set(PLUGIN_CLOUDTRAIL_VERSION "0.9.0") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_CLOUDTRAIL_HASH "13ba77602c0859936f6e3b00f93bd218c463300c6a797b694a0d5aeecde13976") + set(PLUGIN_CLOUDTRAIL_HASH "c8dc8ea5337aa9475042e6441320a5188bbf76977e3a69dd34a49a6251f8e9ad") else() # aarch64 - set(PLUGIN_CLOUDTRAIL_HASH "a01730738e9d5769f69957a204c8afe528b059e9a22f59792dfc65e19d6a43db") + set(PLUGIN_CLOUDTRAIL_HASH "bea12e81409c3df5698f7ab6a740ee9698b9dd1275b5985810daf70ac505c810") endif() ExternalProject_Add( @@ -71,7 +71,7 @@ install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-plugin-prefix/src/cloudtrail-plu ExternalProject_Add( cloudtrail-rules URL "https://download.falco.org/plugins/${PLUGINS_DOWNLOAD_BUCKET}/cloudtrail-rules-${PLUGIN_CLOUDTRAIL_VERSION}.tar.gz" - URL_HASH "SHA256=27f2fc0a74d39476ad968a61318dec65a82b109c4a462b9fa22be45425ddaaad" + URL_HASH "SHA256=b0c2b6c78d61cc3e7fb66445bcd8f763d15eb4a24f518385377e704aacec6b3f" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "") @@ -79,11 +79,11 @@ ExternalProject_Add( install(FILES "${PROJECT_BINARY_DIR}/cloudtrail-rules-prefix/src/cloudtrail-rules/aws_cloudtrail_rules.yaml" DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${PLUGINS_COMPONENT_NAME}") # json -set(PLUGIN_JSON_VERSION "0.7.0") +set(PLUGIN_JSON_VERSION "0.7.1") if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(PLUGIN_JSON_HASH "a7bf52009a935f22b473724f722566fde27aec5c7d618ecd426eed81e477e94d") + set(PLUGIN_JSON_HASH "3177fd667b384df2ffd2ae3260bda867c407c09d3fbcae841af204b82c1341c1") else() # aarch64 - set(PLUGIN_JSON_HASH "9cd65fac3f1cbc7f723b69671d42d35901cd322a23d8f2b9dc95fb0593918a7e") + set(PLUGIN_JSON_HASH "3b5d0a9190bfd08e21915f997f88ca314f2027564a022eb88eef80ff4e2c77fa") endif() ExternalProject_Add( From 357c8d1f3fbfe53c6f225284def9502c6257fe5b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:16:03 +0000 Subject: [PATCH 06/12] build(deps): Bump submodules/falcosecurity-rules Bumps [submodules/falcosecurity-rules](https://github.com/falcosecurity/rules) from `bea364e` to `6d3fcf0`. - [Release notes](https://github.com/falcosecurity/rules/releases) - [Commits](https://github.com/falcosecurity/rules/compare/bea364ef41e78b64e6936560d12c1c14f42bd111...6d3fcf0467061cfb16477b4275b599dd53840c26) --- updated-dependencies: - dependency-name: submodules/falcosecurity-rules dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- submodules/falcosecurity-rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/falcosecurity-rules b/submodules/falcosecurity-rules index bea364ef41e..6d3fcf04670 160000 --- a/submodules/falcosecurity-rules +++ b/submodules/falcosecurity-rules @@ -1 +1 @@ -Subproject commit bea364ef41e78b64e6936560d12c1c14f42bd111 +Subproject commit 6d3fcf0467061cfb16477b4275b599dd53840c26 From 6d9513d3c0d0f90d5b4746212b11375cedf87d5b Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Thu, 14 Sep 2023 17:28:09 +0200 Subject: [PATCH 07/12] 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 52585b864a5..28fd494b682 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 b79d2b5c304..13595e33505 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 da0b16e57c7..a39eeb03483 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. From 9e23d89063e4c70e803943d5f2286d2cb24cd1e6 Mon Sep 17 00:00:00 2001 From: Luca Guerra Date: Thu, 21 Sep 2023 13:16:25 +0000 Subject: [PATCH 08/12] update(falco): bundle rules 2.0.0 Signed-off-by: Luca Guerra --- cmake/modules/rules.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/rules.cmake b/cmake/modules/rules.cmake index 2e996525065..0ae84eef068 100644 --- a/cmake/modules/rules.cmake +++ b/cmake/modules/rules.cmake @@ -16,8 +16,8 @@ include(GNUInstallDirs) include(ExternalProject) # falco_rules.yaml -set(FALCOSECURITY_RULES_FALCO_VERSION "falco-rules-2.0.0-rc1") -set(FALCOSECURITY_RULES_FALCO_CHECKSUM "SHA256=1e5cda24238bb33e7fdb55a523d39fe8eac3978822fca9ce073c6bd537b86ecf") +set(FALCOSECURITY_RULES_FALCO_VERSION "falco-rules-2.0.0") +set(FALCOSECURITY_RULES_FALCO_CHECKSUM "SHA256=48b6c5ae7a619a320eb51dbe036d1bc78622ab692956c9493390678874757b32") set(FALCOSECURITY_RULES_FALCO_PATH "${PROJECT_BINARY_DIR}/falcosecurity-rules-falco-prefix/src/falcosecurity-rules-falco/falco_rules.yaml") ExternalProject_Add( falcosecurity-rules-falco From 739af7dac09cc760fc10e0bac95a781394957554 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 21 Sep 2023 12:35:10 +0200 Subject: [PATCH 09/12] chore: bump to the latest libs Signed-off-by: Andrea Terzolo --- cmake/modules/falcosecurity-libs.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake index 13595e33505..4c72fef615c 100644 --- a/cmake/modules/falcosecurity-libs.cmake +++ b/cmake/modules/falcosecurity-libs.cmake @@ -35,8 +35,8 @@ else() # In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable - # ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..` if(NOT FALCOSECURITY_LIBS_VERSION) - set(FALCOSECURITY_LIBS_VERSION "0.13.0") - set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=19189e78c03781a118e43a62631e07806525720efd1a94a4ec37aac1dcca4d3f") + set(FALCOSECURITY_LIBS_VERSION "e999e61fa8f57ca8e9590e4c108fd4a12459ec48") + set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=a44613c43615aaa537a78e17168f9a587355fef04fe142d029dfc475987a1c85") endif() # cd /path/to/build && cmake /path/to/source From b79338c8b78f522c53daa335a6d1dc2bcc32c610 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 21 Sep 2023 14:49:29 +0200 Subject: [PATCH 10/12] docs: add a warning for metrics Signed-off-by: Andrea Terzolo --- falco.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/falco.yaml b/falco.yaml index 829fd486850..09bc110d0e3 100644 --- a/falco.yaml +++ b/falco.yaml @@ -675,6 +675,12 @@ syscall_event_drops: # periodic metric snapshots (including stats and resource utilization) captured # at regular intervals # +# --- [Warning] +# +# Due to a regression (https://github.com/falcosecurity/falco/issues/2821) some metrics +# like `falco.host_num_cpus` or `falco.start_ts` will not be available when you use +# source plugins (like k8saudit). +# # --- [Description] # # Consider these key points about the `metrics` feature in Falco: From e496efe06c0c77ddf45a03a859c85b6912622aad Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 21 Sep 2023 15:37:12 +0200 Subject: [PATCH 11/12] chore: bump libs to the latest tag Signed-off-by: Andrea Terzolo --- cmake/modules/falcosecurity-libs.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/falcosecurity-libs.cmake b/cmake/modules/falcosecurity-libs.cmake index 4c72fef615c..4942b397f7f 100644 --- a/cmake/modules/falcosecurity-libs.cmake +++ b/cmake/modules/falcosecurity-libs.cmake @@ -35,8 +35,8 @@ else() # In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable - # ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..` if(NOT FALCOSECURITY_LIBS_VERSION) - set(FALCOSECURITY_LIBS_VERSION "e999e61fa8f57ca8e9590e4c108fd4a12459ec48") - set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=a44613c43615aaa537a78e17168f9a587355fef04fe142d029dfc475987a1c85") + set(FALCOSECURITY_LIBS_VERSION "0.13.1-rc1") + set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=42d488016ddffe2476ead30a7fdb1f383af96206250e9cb8d639a13439059f94") endif() # cd /path/to/build && cmake /path/to/source From 8385ff1dd5c716736e92f21466243e761db19272 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 21 Sep 2023 16:40:40 +0200 Subject: [PATCH 12/12] fix(dockerfile): remove useless CMD Signed-off-by: Andrea Terzolo --- docker/driver-loader-legacy/Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/driver-loader-legacy/Dockerfile b/docker/driver-loader-legacy/Dockerfile index 6fdd6fc9867..3ffc604d1cf 100644 --- a/docker/driver-loader-legacy/Dockerfile +++ b/docker/driver-loader-legacy/Dockerfile @@ -126,5 +126,3 @@ RUN curl -L -o binutils_2.30-22_${TARGETARCH}.deb https://download.falco.org/dep COPY ./docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] - -CMD ["/usr/bin/falco"]