Closed The3fon closed 2 years ago
Hi @The3fon, looks like that kernel is for a RedOS system, could you confirm this? We currently don't support that system out of the box so you will need to create your own drivers and make them available for collector to use.
If you have access to a system with the headers for that kernel, you could use the make -C kernel-modules drivers
at the root of the repository to build the eBPF probe and kernel modules: https://github.com/stackrox/collector/blob/0025bc7abd6b177e3462c414cc09b24bced9ddd8/kernel-modules/Makefile#L45-L53
Once the build finishes, you should see the driver under kernel-modules/container/kernel-modules
.
At this point you have a few options to make them available for collector:
MODULE_DOWNLOAD_BASE_URL
environment variable to point collector to download drivers directly from there.Thank @Molter73 for fast answer. Yes, its RedOS system. I have trouble for build module, my steps:
docker build -t build-kernel-modules-fc36 ./build -f build/Dockerfile.fc36
Sending build context to Docker daemon 32.26kB
Step 1/7 : FROM fedora:36
....
Successfully built a60654025b55
Successfully tagged build-kernel-modules-fc36:latest
docker run --rm \
-v /root/collector/kernel-modules/..:/collector \
-v /usr/include/bpf:/usr/include/bpf:ro \
-v /lib/modules/:/lib/modules/:ro \
-v /usr/src:/usr/src:ro \
build-kernel-modules-fc36:latest \
/collector/kernel-modules/dev/build-drivers.sh
CMake Error: The source directory "/collector/falcosecurity-libs" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
What does include CMakeLists.txt?
Looks like you might have made a shallow copy of the repo, run git submodule update --init
at the root of the repository and make sure there are files in the falcosecurity-libs/
subdirectory, including a CMakeLists.txt
file.
$ ls falcosecurity-libs
CMakeLists.txt COPYING README.md driver test
CMakeListsGtestInclude.cmake NOTICES cmake proposals userspace
CODE_OF_CONDUCT.md OWNERS coding_conventions.md release.md
@Molter73, It's my mistake, I didn't read the documentation carefully. Thank you for your help, the module build without errors.
Hello! The collector pods are bouncing between Running and CrashLoopBackOff due to the below error:
How can I troubleshoot? How cain i build own kernel-module?