]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: automatically load luks keys off disk
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Apr 2020 14:37:14 +0000 (16:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 May 2020 15:28:25 +0000 (17:28 +0200)
commit7407f689807963d48dce08e5581b5cb4b4e56813
tree6395340d8be7c5a4e1ee31a3105e333a8e00794e
parent23769fb3711e268386453ae3b4d8ed3feadeb516
cryptsetup: automatically load luks keys off disk

Let's make loading of keys a bit more automatic and define a common
place where key files can be placed. Specifically, whenever a volume of
name "foo" is attempted, search for a key file in
/etc/cryptsetup-keys.d/foo.key and /run/cryptsetup-keys.d/foo.key,
unless a key file is declared explicitly.

With this scheme we have a simple discovery in place that should make it
more straightfoward wher to place keys, and requires no explicit
configuration to be used.
src/cryptsetup/cryptsetup-pkcs11.c
src/cryptsetup/cryptsetup-pkcs11.h
src/cryptsetup/cryptsetup.c