homework: Always upload volume key to keyring
This commit makes homework always upload the LUKS volume key into the kernel keyring. This is different from previous behavior in three notable ways: - Previously, we'd only upload if auto-resize was on. In preparation for upcoming changes, now we always upload - Previously, we'd upload the user's actual password (or a password obtained from a FIDO key or similar). Now, we upload the LUKS volume key itself, to remove a layer of unnecessary indirection. - Previously, Lock() wouldn't remove the key from the kernel keyring. This, of course, defeats the purpose of Lock(), so now it removes the key This commit also allows the LUKS volume to be unlocked using the volume key we obtained from the keyring.
This commit is contained in:
committed by
Luca Boccassi
parent
9a077230a4
commit
d0eff7a12d
@@ -41,7 +41,9 @@ DLSYM_PROTOTYPE(crypt_keyslot_destroy);
|
||||
DLSYM_PROTOTYPE(crypt_keyslot_max);
|
||||
DLSYM_PROTOTYPE(crypt_load);
|
||||
DLSYM_PROTOTYPE(crypt_resize);
|
||||
DLSYM_PROTOTYPE(crypt_resume_by_passphrase);
|
||||
#if HAVE_CRYPT_RESUME_BY_VOLUME_KEY
|
||||
DLSYM_PROTOTYPE(crypt_resume_by_volume_key);
|
||||
#endif
|
||||
DLSYM_PROTOTYPE(crypt_set_data_device);
|
||||
DLSYM_PROTOTYPE(crypt_set_debug_level);
|
||||
DLSYM_PROTOTYPE(crypt_set_log_callback);
|
||||
|
||||
Reference in New Issue
Block a user