Compatibility
Kunai has been built to be compatible with Linux LTS kernels. To guarantee stability, our CI/CD pipeline tests every modification on the 5.4, 5.10, 5.15, 6.1 and 6.6 LTS kernels, on both x86_64 and aarch64. Even with this rigorous testing it is possible that the program crashes before it can even start monitoring. If that happens to you do not panic, it does not mean the tool is bad, it just means your kernel is not supported yet, for a reason we need to understand. Having a single binary fitting to several kernels is great for deployment however this has a cost: the programs needs to be aware of some of the changes made between the kernel versions.
If you are interested into getting more knowledge about how kunai makes to supports several kernels at once, you should take a read to the BPF CO-RE reference
In order to get your kernel version, run the following command uname -r, then you can check the following table.
| OS | Kernels |
|---|---|
| Ubuntu-20.04 | 5.4 |
| Ubuntu-22.04 | 5.15 |
| Archlinux | 5.18 to 6.18 |
If your kernel version:
- is between the minimum and maximum kernel version, it will very likely work without issue
- is higher than the maximum version supported, cross your fingers, it might work
- is lower than the minimum version, it is will likely fail at running but try anyway you have nothing to lose
Let us know so that we can update the table
Known issues
RLIMIT_MEMLOCK
Old kernels need a high RLIMIT_MEMLOCK to load eBPF maps. Kunai sets it to unlimited at
startup, so it does not need to be changed by hand. If this fails, for instance when Kunai runs
without the CAP_SYS_RESOURCE capability, Kunai stops with an error starting with:
Error: failed to set RLIMIT_MEMLOCK
In this case, run Kunai with this capability.