public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH encrypted swsusp 0/3] encrypted swsusp image
@ 2005-04-10 23:19 Andreas Steinmetz
  2005-04-11  7:54 ` folkert
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Steinmetz @ 2005-04-10 23:19 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Linux Kernel Mailinglist

The following patches allow for encryption of the on-disk swsusp image
to prevent data gathering of e.g. in-kernel keys or mlocked data after
resume.

For this purpose the aes cipher must be compiled into the kernel as
module load is not possible at resume time.

A random key is generated at suspend time, stored in the suspend header
on disk and deleted from the header at resume time. If you don't resume
a mkswap on the suspend partition will also delete the temporary key.

Only the data pages are encrypted as only these may contain sensitive data.

This works on my x86_64 laptop (64bit mode) and probably needs testing
on other platforms.
-- 
Andreas Steinmetz                       SPAMmers use robotrap@domdv.de



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

* Re: [PATCH encrypted swsusp 0/3] encrypted swsusp image
  2005-04-10 23:19 [PATCH encrypted swsusp 0/3] encrypted swsusp image Andreas Steinmetz
@ 2005-04-11  7:54 ` folkert
  2005-04-11 10:13   ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: folkert @ 2005-04-11  7:54 UTC (permalink / raw)
  To: Andreas Steinmetz; +Cc: Pavel Machek, Linux Kernel Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

> The following patches allow for encryption of the on-disk swsusp image
> to prevent data gathering of e.g. in-kernel keys or mlocked data after
> resume.
> For this purpose the aes cipher must be compiled into the kernel as
> module load is not possible at resume time.
> A random key is generated at suspend time, stored in the suspend header
> on disk and deleted from the header at resume time. If you don't resume
> a mkswap on the suspend partition will also delete the temporary key.
> Only the data pages are encrypted as only these may contain sensitive data.
> This works on my x86_64 laptop (64bit mode) and probably needs testing
> on other platforms.

What about an option for an user-defined key? One that can be set when
suspending?


Folkert van Heusden

Auto te koop! Zie: http://www.vanheusden.com/daihatsu.php
Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden!
+------------------------------------------------------------------+
|UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)|
|a try, it brings monitoring logfiles to a different level! See    |
|http://vanheusden.com/multitail/features.html for a feature list. |
+------------------------------------------= www.unixsoftware.nl =-+
Phone: +31-6-41278122, PGP-key: 1F28D8AE
Get your PGP/GPG key signed at www.biglumber.com!

[-- Attachment #2: Type: application/pgp-signature, Size: 282 bytes --]

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

* Re: [PATCH encrypted swsusp 0/3] encrypted swsusp image
  2005-04-11  7:54 ` folkert
@ 2005-04-11 10:13   ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2005-04-11 10:13 UTC (permalink / raw)
  To: folkert; +Cc: Andreas Steinmetz, Linux Kernel Mailinglist

Hi!

> > The following patches allow for encryption of the on-disk swsusp image
> > to prevent data gathering of e.g. in-kernel keys or mlocked data after
> > resume.
> > For this purpose the aes cipher must be compiled into the kernel as
> > module load is not possible at resume time.
> > A random key is generated at suspend time, stored in the suspend header
> > on disk and deleted from the header at resume time. If you don't resume
> > a mkswap on the suspend partition will also delete the temporary key.
> > Only the data pages are encrypted as only these may contain sensitive data.
> > This works on my x86_64 laptop (64bit mode) and probably needs testing
> > on other platforms.
> 
> What about an option for an user-defined key? One that can be set when
> suspending?

That's logical next step, but lets try to solve one problem at a time.

								Pavel
-- 
Boycott Kodak -- for their patent abuse against Java.

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-10 23:19 [PATCH encrypted swsusp 0/3] encrypted swsusp image Andreas Steinmetz
2005-04-11  7:54 ` folkert
2005-04-11 10:13   ` Pavel Machek

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