Kernel Arguments
The defaults
Every RakuOS image boots with:
| Argument | What it does |
|---|---|
lockdown=integrity | nothing in user space can modify the running kernel |
module.sig_enforce=1 | only signed drivers load |
intel_iommu=on, iommu.passthrough=0, iommu.strict=1 | the IOMMU is on and devices can't access memory around it (AMD systems have it on by default) |
sysctl.kernel.kexec_load_disabled=1 | the running kernel can't be swapped for another |
The RakuOS kernel uses AppArmor for access control (with the BPF security module on). SELinux isn't part of it, so the old selinux=0, security=apparmor and apparmor=1 arguments are no longer needed.
What lockdown blocks
- Undervolting and TDP tools that write CPU registers (MSRs).
- Raw
/dev/memaccess. - Hibernation. Sleep (suspend) still works.
These settings are deliberate, and Easy Anti-Cheat requires them. Lockdown and driver signature checks can't be turned off: the kernel only lets them get stricter, so adding lockdown=none or module.sig_enforce=0 does nothing.
Adding your own
Open RakuOS System, page System, Kernel Parameters…. What you add there comes after the defaults, so where you set the same option to a different value, your value wins (except lockdown and signature checks, above). It takes effect at the next boot.
If the IOMMU causes problems
On some older Intel PCs, turning the IOMMU on breaks a piece of hardware. For example, a laptop's TPM isn't found any more, so a disk that unlocked automatically with the TPM asks for its passphrase again.
- Test it for one boot. At the boot menu, press
eon the RakuOS entry, deleteintel_iommu=on iommu.passthrough=0 iommu.strict=1from the line starting withlinux, and press Ctrl+X. Nothing is saved; the next boot is back to normal. - If that fixed it, add
intel_iommu=offin Kernel Parameters… and reboot. It stays through updates. - To undo it, remove
intel_iommu=offthere again.
With the IOMMU off, games that use Easy Anti-Cheat v2 won't start, and the anti-cheat check shows it. If the TPM is back but the disk still asks for the passphrase, run sudo rakuos reenroll-tpm2 once.
Checking what's in effect
cat /proc/cmdline
cat /sys/kernel/security/lockdown # shows [integrity]
cat /sys/module/module/parameters/sig_enforce # shows Y