mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christophe Saout <christophe@saout.de>
To: Brandon Low <lostlogic@gentoo.org>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.3-mm1
Date: Thu, 19 Feb 2004 13:39:07 +0100	[thread overview]
Message-ID: <1077194347.5970.15.camel@leto.cs.pocnet.net> (raw)
In-Reply-To: <20040219003301.GE449@lostlogicx.com>

Am Do, den 19.02.2004 schrieb Brandon Low um 01:33:

> > To set up a device basically:
> > 
> > echo 0 `blockdev --getsize /dev/bla` crypt <cipher> <key> 0 /dev/bla 0 |
> > dmsetup create <newname>
> > 
> > is enough. And it's just temporary, because no special tool has been
> > written yet. dmsetup is the most low-level dm tool, mostly for
> > developers. I've written a shell script named cryptsetup for the
> > meantime, it asks for a passphrase and does all the magic you need.
> > 
> > "cryptsetup create test /dev/hda5" will ask for a passphrase and set up
> > /dev/mapper/test. Voila. "cryptsetup remove test" removes it and
> > "cryptsetup status test" shows some status information.
> > 
> What I can't figure out yet is how to do that easily for a loopback...
> use losetup first, and then cryptsetup?  I guess that's ok, just more
> steps than I would prefer.

Yes. Block->File and Block->Crypto->Block are two different things and
should be separated out. But it would be an easy one to make cryptsetup
also call losetup if your specified backend happens to be a file. Like
mount -o loop does. The only thing I'm not sure about: How would it know
when to remove the loop device on "cryptsetup remove" and when now.
mount stores it in the mtab.

I've got some free time, I think I'm going to rewrite cryptsetup as a
small C program today.

> I was under the mistaken impression that I would need lvmtools as well
> in order to use dmcrypt... cool.

Yes, there's some FUD going around...

> > There are some plans to write a unified plugin based key management
> > tool. You might want to have your key stored on a USB stick. Or
> > encrypted in the first sector of your device and you want to unlock it
> > using a password (so you can change your password without needing to
> > reencrypt your data). This would be much more flexible than most of the
> > crap floating around.
> 
> That sounds very cool, saw mention of putting it in the first part of
> the device elsethread.

Yes, for example.

> Ok ok, I'll quit panicking... this just makes it hard to decide which to
> use now as I'm preparing to deploy soon... If I use cryptoloop, it is
> now guaranteed to be obsolete soon, but if I use dmcrypt, it is more
> work right now, but more forward looking... 
> 
> Can you point me to some useful readings related to dmcrypt,
> devicemapper for loopback, etc.? Thanks!

For dm-crypt I've set up a small page:
http://www.saout.de/misc/dm-crypt/

For device-mapper and loopback there's nothing. The loop device provides
block devices, device-mapper can use them. Nothing special here.



  reply	other threads:[~2004-02-19 12:39 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-18  7:21 2.6.3-mm1 Andrew Morton
2004-02-18  7:43 ` 2.6.3-mm1 Andrew Morton
2004-02-18  9:25   ` 2.6.3-mm1 Andrew Morton
2004-02-18 13:42     ` 2.6.3-mm1 Rusty Russell
2004-02-18 18:50       ` 2.6.3-mm1 Andrew Morton
2004-02-18 11:13 ` 2.6.3-mm1 Sean Neakums
2004-02-18 11:14 ` 2.6.3-mm1 Jonathan Brown
2004-02-18 12:37   ` 2.6.3-mm1 Sean Neakums
2004-02-18 12:14 ` dmcrypt works well on 2.6.3 WAS: 2.6.3-mm1 bert hubert
2004-02-18 14:26 ` 2.6.3-mm1 Ramon Rey Vicente
2004-02-18 18:55   ` 2.6.3-mm1 Andrew Morton
2004-02-18 19:06     ` 2.6.3-mm1 Matthew Wilcox
2004-02-18 16:16 ` 2.6.3-mm1 Bill Davidsen
2004-02-18 20:04   ` 2.6.3-mm1 Brandon Low
2004-02-18 20:22     ` 2.6.3-mm1 Andrew Morton
2004-02-18 20:33       ` 2.6.3-mm1 Brandon Low
2004-02-18 20:52         ` 2.6.3-mm1 Andrew Morton
2004-02-18 20:52           ` 2.6.3-mm1 Brandon Low
2004-02-18 21:00             ` 2.6.3-mm1 Andrew Morton
2004-02-18 22:15             ` 2.6.3-mm1 Christophe Saout
2004-02-19  0:33               ` 2.6.3-mm1 Brandon Low
2004-02-19 12:39                 ` Christophe Saout [this message]
2004-02-18 17:50 ` 2.6.3-mm1 James Simmons
2004-02-22  2:46 ` 2.6.3-mm1 William Lee Irwin III
     [not found] <20040217232130.61667965.akpm@osdl.org.suse.lists.linux.kernel>
2004-02-18 10:43 ` 2.6.3-mm1 Andi Kleen
2004-02-18 10:55   ` 2.6.3-mm1 Andrew Morton
2004-02-19  6:37     ` 2.6.3-mm1 Andi Kleen
2004-02-18 13:45       ` 2.6.3-mm1 Joe Thornber
2004-02-19 11:52         ` 2.6.3-mm1 Andi Kleen
2004-02-18 23:27           ` 2.6.3-mm1 Andrew Morton
2004-02-19 17:54             ` 2.6.3-mm1 Andi Kleen
     [not found] <1qujU-5xX-31@gated-at.bofh.it>
     [not found] ` <1qCUf-4vn-41@gated-at.bofh.it>
     [not found]   ` <1qGuR-bb-25@gated-at.bofh.it>
     [not found]     ` <1qGO2-uG-13@gated-at.bofh.it>
     [not found]       ` <1qGO5-uG-21@gated-at.bofh.it>
     [not found]         ` <1qGY1-RT-29@gated-at.bofh.it>
     [not found]           ` <1qGY1-RT-27@gated-at.bofh.it>
     [not found]             ` <1qIn3-5yq-23@gated-at.bofh.it>
2004-02-19 21:58               ` 2.6.3-mm1 Bill Davidsen
2004-02-19 22:01                 ` 2.6.3-mm1 Christophe Saout

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=1077194347.5970.15.camel@leto.cs.pocnet.net \
    --to=christophe@saout.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lostlogic@gentoo.org \
    /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

all inboxes | Powered by JetHome®