Home     News     Download     Contact     Donate

Hardening Options Enabled in Ragnarok's Kernel Build


Ragnarok's build of the Linux kernel enables many hardening options, most of which are recommended by the Kernel Self Protection Project (KSPP)[1].

Ragnarok's build vs Debian's


Ragnarok's kernel is built using the same source as Debian[2] and simply modifies its configuration to enable options not present in Debian's build.

At first glance, the most significant difference is that Ragnarok's kernel is built using the full LLVM/Clang toolchain, and uses control flow integrity[3] and ThinLTO[4].

For the sake of transparency, a diff file showing the differences between Debian and Ragnarok's builds can be viewed here:

https://raw.githubusercontent.com/RagnarokOS/kernel-build/refs/heads/master/config.diff

Hardening Options


The following options are enabled in Ragnarok's kernel. Some of these are also enabled in Debian's build, while others aren't.

Trade-off


Unlike Debian's kernel, Ragnarok's build does not support secure boot. Users who prefer using secure boot can use Debian's default kernel instead, and will still benefit from some of the above hardening options via pre set sysctl values and bootloader parameters shipped with the ragnarok-base package.

Links


[1] https://kspp.github.io/Recommended_Settings
[2] https://packages.debian.org/bookworm/linux-source
[3] https://clang.llvm.org/docs/ControlFlowIntegrity.html
[4] https://clang.llvm.org/docs/ThinLTO.html