Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
add Falco 0.30 (new driver) support (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
VJftw authored Jan 18, 2022
1 parent f482917 commit 32ec6e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var FalcoVersionNames = []string{
"0.26.0", // falco-driver-version: 2aa88dcf6243982697811df4c1b484bcbe9488a2
"0.28.1", // falco-driver-version: 5c0b863ddade7a45568c0ac97d037422c9efb750
"0.29.1", // falco-driver-version: 17f5df52a7d9ed6bb12d3b1768460def8439936d
"0.30.0", // falco-driver-version: 3aa7a83bf7b9e6229a3824e3fd1f4452d1e95cb4
}

type falcoVersion struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/falcodriverbuilder/falco-driver-builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ ENV FALCO_DRIVER_LOADER_PATH="/usr/bin/falco-driver-loader"
SHELL ["/bin/bash", "-c"]

RUN set -Eeuxo pipefail; \
# Determine DRIVERS_REPO, DRIVER_VERSION, DRIVER_NAME from existing falco-driver-loader to persist them in the 0.28.1 falco-driver-loader script.
# Determine DRIVERS_REPO, DRIVER_VERSION, DRIVER_NAME from existing falco-driver-loader to persist them in the 0.30.0 falco-driver-loader script.
export DRIVERS_REPO=$(grep ^DRIVERS_REPO "${FALCO_DRIVER_LOADER_PATH}" | cut -f2 -d\") && \
export DRIVER_VERSION=$(grep ^DRIVER_VERSION "${FALCO_DRIVER_LOADER_PATH}" | cut -f2 -d\") && \
export DRIVER_NAME=$(grep ^DRIVER_NAME "${FALCO_DRIVER_LOADER_PATH}" | cut -f2 -d\") && \
# Use falco-driver-loader from 0.28.1 (the patches below work with that script.)
curl -L https://raw.githubusercontent.com/falcosecurity/falco/0.28.1/scripts/falco-driver-loader \
# Use falco-driver-loader from 0.30.0 (the patches below work with that script.)
curl -L https://raw.githubusercontent.com/falcosecurity/falco/0.30.0/scripts/falco-driver-loader \
-o /usr/bin/falco-driver-loader && chmod +x /usr/bin/falco-driver-loader && \
# Set DRIVERS_REPO to match existing falco-driver-loader script.
sed -i '/^\s*DRIVERS_REPO=/d' "${FALCO_DRIVER_LOADER_PATH}" && \
Expand Down

0 comments on commit 32ec6e9

Please sign in to comment.