Skip to content

Commit

Permalink
Relocate tools on Flatcar in BPF mode
Browse files Browse the repository at this point in the history
In #2043 we've added logic
for relocating tools on Flatcar when running falco-driver-loader in kmod
mode. This logic is relevant for BPF mode, too, which is currently
broken on Flatcar. Call flatcar_relocate_tools in BPF mode, too.

Signed-off-by: Johanan Liebermann <jliebermann@microsoft.com>
  • Loading branch information
johananl authored and poiana committed Aug 21, 2023
1 parent a2b21fa commit f4c8833
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/falco-driver-loader
Expand Up @@ -486,6 +486,12 @@ load_bpf_probe_compile() {
make modules_prepare > /dev/null
}

if [ "${TARGET_ID}" == "flatcar" ]; then
KERNEL_RELEASE=${DRIVER_KERNEL_RELEASE}
echo "* Flatcar detected (version ${VERSION_ID}); relocating kernel tools"
flatcar_relocate_tools
fi

if [ "${TARGET_ID}" == "cos" ]; then
echo "* COS detected (build ${BUILD_ID}), using COS kernel headers"

Expand Down

0 comments on commit f4c8833

Please sign in to comment.