Ubuntu Support Template
Ubuntu Version:
24.04.4 LTS
Desktop Environment:
KDE Plasma
Problem Description:
I tried to turn on Secure Boot in my ASUS BIOS. Everything works well on boot, including NVIDIA, but hibernation does not work, even though I have it working without problems with Secure Boot off. Secure Boot activates Kernel Lockdown, whose policy it is to prevent hibernation altogether.
While I appreciate that Secure Boot is supposed to guarantee a clean kernel on boot-up, a policy of preventing hibernation on Secure Boot makes my system less secure, not more. I hibernate to a luks encrypted swap partition, so the disk image can’t be tampered with. Granted that without the ‘prevent hibernation’ policy it’s possible that a hacked system will be saved and rebooted, surely most hacks would have already done their damage on the system before hibernation. In general, my security is pretty good and it’s unlikely my active system will get hacked (albeit with Mythos…). And, by next boot, Secure Boot would at least warn me about tampering.
My work involves many desktops loaded with applications and windows. Session Manager does a lousy job of reviving my desktop (opens applications I didn’t have open, doesn’t open some applications, puts windows on the wrong desktops, etc.). So, I have to have hibernation. But under current lockdown policy, I can’t hibernate, which means I have to turn off Secure Boot. That means that my system is vulnerable to tampering in my unencrypted /boot directory. That to me seems like a much bigger risk than being hacked while using the OS, particularly so if the hack targets /boot.
Ideally, Canonical would expose a simple switch to allow users to use hibernation in a locked down kernel. To my knowledge, that doesn’t exist.
Relevant System Information:
Kernel: 6.8.0-110-generic arch: x86_64 bits: 64
Desktop: KDE Plasma v: 5.27.12 Distro: Kubuntu 24.04.4 LTS (Noble Numbat)
Screenshots or Error Messages:
```
Lockdown: swapper/0: hibernation is restricted
Lockdown: systemd-logind: hibernation is restricted
```
What I’ve Tried:
There’s at least one solution, but it would require what sounds like substantial modification and rebuilding of the kernel every time the kernel is updated. That isn’t practical for me.