Re: dm-crypt crypt_status reports key?
From: Christophe Saout (christophe_at_saout.de)
Date: 02/03/05
- Previous message: Ian Godin: "Drive performance bottleneck"
- In reply to: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Next in thread: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Reply: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Matt Mackall <mpm@selenic.com> Date: Thu, 03 Feb 2005 03:34:29 +0100
Am Mittwoch, den 02.02.2005, 17:52 -0800 schrieb Matt Mackall:
> > An alternativ would be to use some form of handle to point to the key
> > after it has been given to the kernel. But that would require some more
> > infrastructure.
>
> There's been some talk about such infrastructure already. I believe
> some pieces of it may already be in place.
Yes, you are right. I didn't follow the discussion but it actually looks
very promising. The keys in the infrastructure are reference-counted.
That's good.
The keyrings can be attached to either thread, processes, sessions or
users.
It seems that it's possible to have floating keys (not attached to any
keyring). So we would just need to figure out how to use these keyrings
to allow communication with userspace applications. Process keyrings
seem to have the advantage that the keyring is dropped when it exits so
that all keys that are not in use by the kernel are also dropped. A
keyring for the root user would have the problem that if the cryptsetup
application aborts in the middle you would end up with old keys lying
around forever.
The keyring API seems very flexible. You can define your own type of
keys and give them names. Well, the name is probably irrelevant here and
should be chosen randomly but it's less likely to collide with someone
else.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- application/pgp-signature attachment: Dies ist ein digital signierter Nachrichtenteil
- Previous message: Ian Godin: "Drive performance bottleneck"
- In reply to: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Next in thread: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Reply: Matt Mackall: "Re: dm-crypt crypt_status reports key?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|