> Then nobody can tamper with the image, since the LUKS key is derived from the TPM...
How do you avoid root having access to it?
How do you avoid root having access to it?
Ie. if it's swap on LUKS, writes are disallowed and resume can happen. In all other situations, writes are allowed, but resume cannot.
There isn't a thread safe way for root to write to a swap partition while it's in use anyway, and I'm not even sure if the current kernel allows that.