68
submitted 2 weeks ago by j4k3@lemmy.world to c/linux@lemmy.ml

I've made the effort to secure mine and am aware of how the trusted protection module works with keys, Fedora's Anaconda system, the shim, etc. I've seen where some here have mentioned they do not care or enable secure boot. Out of open minded curiosity for questioning my biases, I would like to know if there is anything I've overlooked or never heard of. Are you hashing and reflashing with a CH341/Rπ/etc, or is there some other strategy like super serious network isolation?

you are viewing a single comment's thread
view the rest of the comments
[-] TheButtonJustSpins@infosec.pub -2 points 2 weeks ago

You have to turn off Secure Boot to enable hibernation, and I value hibernation enough to do so.

[-] 69420@lemmy.world 15 points 2 weeks ago

This is patently false. Secure boot and hibernation are not mutually exclusive.

[-] thayer@lemmy.ca 4 points 2 weeks ago

Not mutually exclusive, but it's highly probable that if you're running a mainstream distro, the default kernel is in lockdown mode, preventing hibernation while secure boot is enabled.

[-] skullgiver@popplesburger.hilciferous.nl 3 points 2 weeks ago* (last edited 2 weeks ago)

On Linux there have been some challenges. Lockdown mode and hibernation don't play nice. This isn't to do with secure boot (you can also disable lockdown mode individually) but to prevent kernel access to processes that can edit the hibernation image last-minute (to bypass SELinux, for instance, which shouldn't be possible even as root), lockdown mode has prevented hibernation for the longest time. I don't know if it's been fixed yet, it's been a while since I last checked.

Disabling secure boot makes the kernel go "whelp, looks like there's no way to secure the boot process anyway" and will disable lockdown mode by default. If your device is free from other lockdown mode issues, this'll seem to turn secure boot into a lockdown mode toggle, even though it's just a side effect.

[-] TheButtonJustSpins@infosec.pub 4 points 2 weeks ago

While I believe you, I haven't been able to enable hibernation with it on.

[-] wildbus8979@sh.itjust.works 7 points 2 weeks ago* (last edited 2 weeks ago)

It's a kernel build config. Debian for one ships with support disabled due to security concerns.

[-] TheButtonJustSpins@infosec.pub 6 points 2 weeks ago

So I'd have to rebuild the kernel, not just provide a kernel argument? That's definitely not a step I'm ready for.

[-] SteveTech@programming.dev 10 points 2 weeks ago

I believe if your swap partition is on an encrypted LVM, you can still hibernate with kernel lockdown enabled.

[-] 0x0@infosec.pub 2 points 2 weeks ago

This is my setup on debian. Works without any issues.

this post was submitted on 27 Aug 2024
68 points (98.6% liked)

Linux

47293 readers
707 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS