ask-password: add support for caching passwords in the kernel keyring

This adds support for caching harddisk passwords in the kernel keyring
if it is available, thus supporting caching without Plymouth being
around.

This is also useful for hooking up "gdm-auto-login" with the collected
boot-time harddisk password, in order to support gnome keyring
passphrase unlocking via the HDD password, if it is the same.

Any passwords added to the kernel keyring this way have a timeout of
2.5min at which time they are purged from the kernel.
This commit is contained in:
Lennart Poettering
2015-10-07 12:26:14 +02:00
parent 0084360296
commit e287086b8a
16 changed files with 492 additions and 155 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ static int add_modules(const char *p) {
if (!k)
return log_oom();
if (strv_extend_strv(&arg_proc_cmdline_modules, k) < 0)
if (strv_extend_strv(&arg_proc_cmdline_modules, k, true) < 0)
return log_oom();
return 0;