The CNF Testsuite sets up Falco for the non_root_user test. But Falco requires drivers that are built for the specific OS kernel version.
To run the non_root_user test, please choose a prebuilt driver or a custom driver, and then proceed to configure the CNF Testsuite to specify the appropriate Falco configuration.
- Falco provides prebuilt drivers only for the 3 recent driver versions (reference)
- Availability of prebuilt drivers can be checked here.
Falco maintains the falcosecurity/driverkit project to help build custom drivers. Please refer to the project's documentation to build custom Falco drivers for your Linux kernel version.
The CNF Testsuite installs Falco 3.1.5. The testsuite allows specifying Helm CLI options for Falco's Helm chart installation using the FALCO_HELM_OPTS env var.
This option can be used to pass a YAML file that overrides Falco's Helm chart values, like below.
FALCO_HELM_OPTS="-f falco-values.yml" ./cnf-testsuite non_root_userThis
FALCO_HELM_OPTSneeds to be set when running thenon_root_usertest via the workload command too.
Below is an example YAML file that overrides Falco Helm values to specify a custom-built ebpf driver.
driver:
enabled: true
kind: ebpf
ebpf:
path: "/falco-driver/falco-ubuntu.o"
mounts:
volumes:
- name: "driver-fs"
hostPath:
path: "/falco-driver"
volumeMounts:
- mountPath: "/falco-driver"
name: driver-fsPlease refer to the Falco Helm chart's values file to see options that can be specified.