Skip to content

Commit

Permalink
chore: add 4.0.0+driver support for kernel-5.10.0-0.bpo.15 x86_64
Browse files Browse the repository at this point in the history
This PR adds ebpf object file and kernel module driver support for debian kernel v5.10.0-0.bpo.15, architecture `x86_64`.
Supported falco driver versions 2.0,3.0 and 4.0.

Upgrading to falco v0.34.1 in DigitalOcean Kubernetes managed service (DOKS) v1.22.13-do.0 requires
`5.10.0-0.bpo.15-amd64` driver support for v4 driver version.

Error encountered during driver setup:

```
================ Cleaning phase ================

* Looking for a falco module locally (kernel 5.10.0-0.bpo.15-amd64)
* Filename 'falco_debian_5.10.0-0.bpo.15-amd64_1.ko' is composed of:
 - driver name: falco
 - target identifier: debian
 - kernel release: 5.10.0-0.bpo.15-amd64
 - kernel version: 1
* Trying to download a prebuilt falco module from https://download.falco.org/driver/4.0.0%2Bdriver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.ko
curl: (22) The requested URL returned error: 404
Unable to find a prebuilt falco module
install: /usr/lib/gcc/x86_64-linux-gnu/5/
* Trying to dkms install falco module with GCC /usr/bin/gcc
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"

Creating symlink /var/lib/dkms/falco/4.0.0+driver/source ->
                 /usr/src/falco-4.0.0+driver

DKMS: add completed.
* Running dkms build failed, couldn't find /var/lib/dkms/falco/4.0.0+driver/build/make.log (with GCC /usr/bin/gcc)
install: /usr/lib/gcc/x86_64-linux-gnu/5/
* Trying to dkms install falco module with GCC /usr/bin/gcc-5
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
* Running dkms build failed, couldn't find /var/lib/dkms/falco/4.0.0+driver/build/make.log (with GCC /usr/bin/gcc-5)
install: /usr/lib/gcc/x86_64-linux-gnu/6/
* Trying to dkms install falco module with GCC /usr/bin/gcc-6
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
* Running dkms build failed, couldn't find /var/lib/dkms/falco/4.0.0+driver/build/make.log (with GCC /usr/bin/gcc-6)
install: /usr/lib/gcc/x86_64-linux-gnu/8/
* Trying to dkms install falco module with GCC /usr/bin/gcc-8
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
* Running dkms build failed, couldn't find /var/lib/dkms/falco/4.0.0+driver/build/make.log (with GCC /usr/bin/gcc-8)
* Trying to load a system falco module, if present
Consider compiling your own falco driver and loading it or getting in touch with the Falco community
```

 Command used generate driver config:

```
make generate -e TARGET_DISTRO=debian -e TARGET_KERNEL=5.10.0-0.bpo.15-amd64_1 -e TARGET_ARCH=x86_64
```

Signed-off-by: Panagiotis Atmatzidis <atma@convalesco.org>
  • Loading branch information
atmosx committed May 11, 2023
1 parent 1016f15 commit bbf8b8a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kernelversion: *
kernelrelease: *
target: debian
architecture: amd64
output:
module: output/2.0.0+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.ko
probe: output/2.0.0+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.o
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kernelversion: *
kernelrelease: *
target: debian
architecture: amd64
output:
module: output/3.0.1+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.ko
probe: output/3.0.1+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.o
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kernelversion: *
kernelrelease: *
target: debian
architecture: amd64
output:
module: output/4.0.0+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.ko
probe: output/4.0.0+driver/x86_64/falco_debian_5.10.0-0.bpo.15-amd64_1.o

0 comments on commit bbf8b8a

Please sign in to comment.