diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c9b08dfc20..de8d5967ace 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,16 +59,16 @@ endif() # This will be used to print the architecture for which Falco is compiled. set(FALCO_TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR}) -if(NOT DRAIOS_DEBUG_FLAGS) - set(DRAIOS_DEBUG_FLAGS "-D_DEBUG") +if(NOT FALCO_EXTRA_DEBUG_FLAGS) + set(FALCO_EXTRA_DEBUG_FLAGS "-D_DEBUG") endif() string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE) if(CMAKE_BUILD_TYPE STREQUAL "debug") - set(KBUILD_FLAGS "${DRAIOS_DEBUG_FLAGS} ${DRAIOS_FEATURE_FLAGS}") + set(KBUILD_FLAGS "${FALCO_EXTRA_DEBUG_FLAGS} ${FALCO_EXTRA_FEATURE_FLAGS}") else() set(CMAKE_BUILD_TYPE "release") - set(KBUILD_FLAGS "${DRAIOS_FEATURE_FLAGS}") + set(KBUILD_FLAGS "${FALCO_EXTRA_FEATURE_FLAGS}") add_definitions(-DBUILD_TYPE_RELEASE) endif() message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") @@ -89,7 +89,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "release") set(FALCO_SECURITY_FLAGS "${FALCO_SECURITY_FLAGS} -D_FORTIFY_SOURCE=2") endif() -set(CMAKE_COMMON_FLAGS "${FALCO_SECURITY_FLAGS} -Wall -ggdb ${DRAIOS_FEATURE_FLAGS} ${MINIMAL_BUILD_FLAGS} ${MUSL_FLAGS}") +set(CMAKE_COMMON_FLAGS "${FALCO_SECURITY_FLAGS} -Wall -ggdb ${FALCO_EXTRA_FEATURE_FLAGS} ${MINIMAL_BUILD_FLAGS} ${MUSL_FLAGS}") if(BUILD_WARNINGS_AS_ERRORS) set(CMAKE_SUPPRESSED_WARNINGS @@ -101,8 +101,8 @@ endif() set(CMAKE_C_FLAGS "${CMAKE_COMMON_FLAGS}") set(CMAKE_CXX_FLAGS "--std=c++0x ${CMAKE_COMMON_FLAGS} -Wno-class-memaccess") -set(CMAKE_C_FLAGS_DEBUG "${DRAIOS_DEBUG_FLAGS}") -set(CMAKE_CXX_FLAGS_DEBUG "${DRAIOS_DEBUG_FLAGS}") +set(CMAKE_C_FLAGS_DEBUG "${FALCO_EXTRA_DEBUG_FLAGS}") +set(CMAKE_CXX_FLAGS_DEBUG "${FALCO_EXTRA_DEBUG_FLAGS}") set(CMAKE_C_FLAGS_RELEASE "-O3 -fno-strict-aliasing -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing -DNDEBUG") diff --git a/docker/builder/root/usr/bin/entrypoint b/docker/builder/root/usr/bin/entrypoint index fd8f8df2113..092bee642d8 100755 --- a/docker/builder/root/usr/bin/entrypoint +++ b/docker/builder/root/usr/bin/entrypoint @@ -9,10 +9,10 @@ shift # Build type can be "debug" or "release", fallbacks to "release" by default BUILD_TYPE=$(echo "$BUILD_TYPE" | tr "[:upper:]" "[:lower:]") -DRAIOS_DEBUG_FLAGS= +FALCO_EXTRA_DEBUG_FLAGS= case "$BUILD_TYPE" in "debug") - DRAIOS_DEBUG_FLAGS="-D_DEBUG -DNDEBUG" + FALCO_EXTRA_DEBUG_FLAGS="-D_DEBUG -DNDEBUG" ;; *) BUILD_TYPE="release" @@ -37,7 +37,7 @@ case "$CMD" in -DBUILD_BPF="$BUILD_BPF" \ -DBUILD_WARNINGS_AS_ERRORS="$BUILD_WARNINGS_AS_ERRORS" \ -DFALCO_VERSION="$FALCO_VERSION" \ - -DDRAIOS_DEBUG_FLAGS="$DRAIOS_DEBUG_FLAGS" \ + -DFALCO_EXTRA_DEBUG_FLAGS="$FALCO_EXTRA_DEBUG_FLAGS" \ -DUSE_BUNDLED_DEPS=ON \ "$SOURCE_DIR/falco" exit "$(printf '%d\n' $?)" diff --git a/rules/falco_rules.yaml b/rules/falco_rules.yaml index a4a6c5d69e1..a97fa09c2a0 100644 --- a/rules/falco_rules.yaml +++ b/rules/falco_rules.yaml @@ -2094,7 +2094,7 @@ # This list allows for easy additions to the set of commands allowed # to run shells in containers without having to without having to copy # and override the entire run shell in container macro. Once -# https://github.com/draios/falco/issues/255 is fixed this will be a +# https://github.com/falcosecurity/falco/issues/255 is fixed this will be a # bit easier, as someone could append of any of the existing lists. - list: user_known_shell_spawn_binaries items: [] diff --git a/userspace/falco/CMakeLists.txt b/userspace/falco/CMakeLists.txt index 44c3190c2c0..f88bb4fd379 100644 --- a/userspace/falco/CMakeLists.txt +++ b/userspace/falco/CMakeLists.txt @@ -63,9 +63,10 @@ set( "${YAMLCPP_INCLUDE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" - "${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include" ) +list(APPEND FALCO_INCLUDE_DIRECTORIES "${FALCO_EXTRA_INCLUDE_DIRS}") + set( FALCO_DEPENDENCIES string-view-lite