mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH encrypted swsusp 1/3] core functionality
@ 2005-04-13 23:39 Herbert Xu
  2005-04-14  8:31 ` encrypted swap (was Re: [PATCH encrypted swsusp 1/3] core functionality) Andy Isaacson
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2005-04-13 23:39 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Andreas Steinmetz, rjw, linux-kernel

On Thu, Apr 14, 2005 at 01:24:31AM +0200, Pavel Machek wrote:
>
> > The ssh keys are *encrypted* in the swap when dmcrypt is used.
> > When the swap runs over dmcrypt all writes including those from
> > swsusp are encrypted.
> 
> Andreas is right. They are encrypted in swap, but they should not be
> there at all. And they are encrypted by key that is still available
> after resume. Bad.

The dmcrypt swap can only be unlocked by the user with a passphrase,
which is analogous to how you unlock your ssh private key stored
on the disk using a passphrase.

So I don't see the problem.

> First version simply overwrote suspend image in swap with zeros. This
> is more clever way to do same thing.

This version looks to me like a custom implementation of dmcrypt that
lives inside swsusp which ends up being either less secure than simply
using dmcrypt due to the lack of a passphrase, or it's going to involve
more hacks to get a passphrase from the user at resume time.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-14 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3SZMt-3zo-15@gated-at.bofh.it>
     [not found] ` <3T83r-1Mk-35@gated-at.bofh.it>
2005-04-14 10:57   ` encrypted swap (was Re: [PATCH encrypted swsusp 1/3] core functionality) Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
2005-04-13 23:39 [PATCH encrypted swsusp 1/3] core functionality Herbert Xu
2005-04-14  8:31 ` encrypted swap (was Re: [PATCH encrypted swsusp 1/3] core functionality) Andy Isaacson
2005-04-14  8:38   ` Herbert Xu
2005-04-14  8:49     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®