Systemd/src/cryptsetup
Lennart Poettering e2c2f868b2 cryptsetup: port cryptsetup's main key file logic over to read_full_file_full()
Previously, we'd load the file with libcryptsetup's calls. Let's do that
in our own, so that we can make use of READ_FULL_FILE_CONNECT_SOCKET,
i.e. read in keys via AF_UNIX sockets, so that people can plug key
providers into our logic.

This provides functionality similar to Debian's keyscript= crypttab
option (see → #3007), as it allows key scripts to be run as socket
activated services, that have stdout connected to the activated socket.
In contrast to traditional keyscript= support this logic runs stuff out
of process however, which is beneficial, since it allows sandboxing and
similar.
2020-12-01 14:17:47 +01:00
..
cryptsetup-generator.c cryptsetup: drop unnecessary bracket 2020-11-27 14:35:20 +09:00
cryptsetup-keyfile.c license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
cryptsetup-keyfile.h license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
cryptsetup-pkcs11.c cryptsetup: port PKCS#11 code to read key file with read_full_file() 2020-12-01 14:17:47 +01:00
cryptsetup-pkcs11.h cryptsetup: port PKCS#11 code to read key file with read_full_file() 2020-12-01 14:17:47 +01:00
cryptsetup.c cryptsetup: port cryptsetup's main key file logic over to read_full_file_full() 2020-12-01 14:17:47 +01:00