All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup support for dm-crypt suspend/resume
Date: Fri, 28 Aug 2009 15:53:35 +0200	[thread overview]
Message-ID: <20090828135334.GA13504@tansi.org> (raw)
In-Reply-To: <20090828094616.GC31760@nyx.b42.cz>

On Fri, Aug 28, 2009 at 11:46:17AM +0200, Martin Milata wrote:
> On Fri, Aug 28, 2009 at 07:21:36 +0200, Arno Wagner wrote:
> > Makes sense and increases security. I am wondering however whether
> > this could just be scripted by
> > 1) Store all parameters besides key in some file
> > 2) Completely remove and umount the device before suspend.
> > 3) An resume: Use a wraper around dm-crypt that gets the parameters 
> >    from the file, asks for the password and initializes and mounts 
> >    the device just as if it was newly created.
> 
> If I understand it correctly, this would require unmounting the
> partition (and thus killing all programs using it), which I would like
> to avoid. And cached contents of the filesystem would probably remain in
> RAM anyway.

I am not sure you even can remove the mapping (and hence
the encryption) without umounting. If you can, that would
be better, obviously but then you likely have to do that
with specialised code.

But this may be a case where suspending is not really 
possible.

Arno

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

  reply	other threads:[~2009-08-28 13:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27 22:46 [dm-crypt] cryptsetup support for dm-crypt suspend/resume Martin Milata
2009-08-28  6:04 ` Milan Broz
2009-08-28  9:40   ` Martin Milata
     [not found] ` <20090828052136.GA8035@tansi.org>
2009-08-28  6:13   ` Arno Wagner
2009-08-28  9:46   ` Martin Milata
2009-08-28 13:53     ` Arno Wagner [this message]
2009-08-28 14:28       ` Martin Milata
2009-08-28 14:44         ` Alasdair G Kergon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090828135334.GA13504@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.