Full Disk Encryption on Fedora with TPM2 (apalrd.net)
davb 15 hours ago
lakeviewterrace 16 hours ago
This is literally a one click process in Windows (plus a couple shell commands to enable TPM+PIN).
I'm not disparaging the author in any way — he's merely documenting the stupidity.
Avamander 16 hours ago
Windows and macOS both can do FDE with good UI/UX compared to Linux.
lakeviewterrace 16 hours ago
bubblethink 16 hours ago
lakeviewterrace 16 hours ago
As opposed to accidentally creating your own key of "4", for instance.
A PIN can be used to protect the TPM from unlocking. Even if you set a PIN of "1234" — it would still be far more secure if the disk and laptop were ever to become separated, because the TPM will have generated a strong key anyway.
The TPM is basically a smart card soldered to the motherboard.
> How will you decrypt if the laptop goes bust or if you move the drive elsewhere
Windows and Apple both generate a recovery key as part of the enrollment process which you can store offline.
hparadiz 16 hours ago
bubblethink 16 hours ago
lakeviewterrace 15 hours ago
bubblethink 15 hours ago
drdexebtjl 15 hours ago
The SSD is also at risk of dying, so you need the backups anyway.
rlpb 15 hours ago
setopt 16 hours ago
I think this is specifically for the TPM2 integration, which isn’t required for FDE. But I assume it makes it smoother. System updates that requires multiple reboots for example are more annoying on Fedora, since every reboot requires re-entering the password, while on Mac I just login after the final reboot.
f33d5173 15 hours ago
hackingonempty 13 hours ago
bestouff 13 hours ago
hparadiz 16 hours ago
lakeviewterrace 15 hours ago
The process is wholly dependent on bootloaders, systemd versions, and a bunch of other version-specific tooling.
Which none of the distros can ever agree on, so there are 50 variations of implementing disk encryption.
hparadiz 14 hours ago
Literally the only thing distros can do is give you options during install for the partitioning but that is a personal decision for people and it's basically remaking gparted.
please have an llm explain it to you.
michaelt 15 hours ago
And it's been possible to get Windows-style self-unlocking FDE for 10+ years, such as by using Ubuntu Core - it just costs a bit, and most users aren't willing to pay $$$ to type one less password.
The design of the TPM makes much more sense for a closed-source operating system, where making it impossible to run a non-microsoft-signed OS protects you against rootkits. Open source OSes don't get that benefit, and the remaining benefits are very minor (and come with big downsides) so I can see why open source developers weren't in a hurry.
novafunc 15 hours ago
I don't think that's the case. The great thing about TPMs is that they measure what's on your system. As long as you modify things properly, your changes get measured and stored in the TPM.
Secure Boot is the more closed-sourced way. By default it relies on Microsoft keys unless you enroll your own and sign your stuff.
jasomill 5 hours ago
TPM measured boot is supported, but it’s a bit fussy to set up using traditional Linux boot, because the firmware, kernel, kernel command line, initrd, grub executable, grub environment, and the complete sequence of grub commands all need to be measured, and some of these things can change for valid reasons other than the obvious case of system updates or reconfiguration (e.g., the Red Hat grub-boot-success mechanism which sets a grub environment variable 2 minutes after a successful boot, so a reboot during or shortly after boot is enough to make measurements taken with this variable set fail).
Also, as in any auto-unlock scenario, the boot process all the way to the login prompt needs to be secured against any interruption that may enable the user to get unauthenticated system access after the disk is unlocked.
gosub100 15 hours ago
Also, isn't the insanity due to MS' influence? They were rumored to do this with influencing the UEFI spec, making Linux less desirable because it was so difficult to dual boot or even single boot UEFI when it came out. This conveniently helped windows hold market share (I'm going back to ballmer Linux=cancer days).
It would stand to reason MS would use their influence to make TPMs insane for end users to manage in Linux but a breeze in windows for the same reason. This is presuming we both agree that MS exerts control over hw manufacturers, I think this is clearly the case.
kanbankaren 16 hours ago
You have no idea what is inside the TPM chip and its vulnerabilities.
tryauuum 15 hours ago
With TPM you depend on it so much. What if it breaks? Should I backup the recovery key beforehand? My life has enough keys already Moving the disk to a new laptop also becomes pain
theandrewbailey 15 hours ago
TPM unlocking uses a keyslot in a LUKS container, just like your passphrase does. There are 10 keyslots, so it's not mutually exclusive operation. If TPM doesn't unlock LUKS (as would happen when you put the drive in another device), the bootloader will prompt for a passphrase just like it did before, once entered it will decrypt from another keyslot.
drnick1 15 hours ago
What if you expect the machine to reboot, unattended, after a power outage for instance?
Velocifyer 17 hours ago
nzrf 14 hours ago
My model of defense is.if someone is in my house taking all my stuff, I'm probably owned though a smash and grab yields nothing. Plan accordingly for your needs I guess.
davb 15 hours ago
rjmalagon 15 hours ago
sscaryterry 16 hours ago
zx8080 16 hours ago
sscaryterry 15 hours ago
Grimeton 16 hours ago
izacus 16 hours ago
phoronixrly 17 hours ago
phoronixrly 16 hours ago
I also hear mjg59 is looking into encrypted swap hibernation support, so there's a slim chance there will be some development on the system-attestation front.
bri3d 16 hours ago
Like, in Evil Maid Scenario 1, where the Evil Maid only has one-time access, if you've sealed to say 0,2,4,7,9 , or 7 and 15 with a reasonable setup for what gets extended into 15, the Evil Maid's Fake PIN Entry Software would _not_ validate in the secured boot configuration and couldn't actually unseal the TPM, only coerce you into entering your PIN. Then the Evil Maid would have to physically return to your "correct" boot state with the PIN to unseal the disk, no?
(this is all modulo firmware and early boot exploits, of course, since in that case the attestation could also be forged also)
bubblethink 16 hours ago
phoronixrly 16 hours ago
lakeviewterrace 16 hours ago
You're in here shitting on TPM but don't seem to understand the threat model at all.
bubblethink 16 hours ago
bri3d 16 hours ago
Now, to be clear, I don't think this negates TPM-sealed disk encryption or TPM-and-PIN sealed disk encryption; they're still meaningfully better than the alternatives (with a passphrase alone, your data is already compromised regardless in this invented scenario, and all scenarios are equally variable to the swiss-cheesiness of UEFI firmware unless it is replaced). But it is a valid model.
whiatp 15 hours ago