DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: anirudh takkallapally <anirudh.takkallapally@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Unlocking volume using master key
Date: Fri, 10 Feb 2012 22:05:05 +0100	[thread overview]
Message-ID: <4F358681.9060506@redhat.com> (raw)
In-Reply-To: <loom.20120210T210035-971@post.gmane.org>

On 02/10/2012 09:11 PM, anirudh takkallapally wrote:
> My question over here is How do we unlock an encrypted volume using the Master
> key? this is without having to add a new passphrase.

Hm, this is interesting... it is possible through libcryptsetup API,
but cryptsetup CLI allows using --master-key-file only in
luksFormat and luksAddKey.

It should be easy to add, if you can add issue on project page
I will add it to next version (for luksOpen).

For now, I think the only "simple" shell solution is to not only
store master key, but whole mapping table
"dmsetup table --showkeys" and activate volume using
dmsetup create <name> --table "<stored table>"
(bypass LUKS completely - can be dangerous if wrongly used).
(in mapping table you can replace device to path to snapshot)

It is not ideal solution though...

Milan

  reply	other threads:[~2012-02-10 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 20:11 [dm-crypt] Unlocking volume using master key anirudh takkallapally
2012-02-10 21:05 ` Milan Broz [this message]
2012-02-10 23:21   ` anirudh takkallapally
2012-02-11 10:33     ` Milan Broz

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=4F358681.9060506@redhat.com \
    --to=mbroz@redhat.com \
    --cc=anirudh.takkallapally@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox