usbarmory / interlock

INTERLOCK - file encryption and HSM front-end
Other
299 stars 46 forks source link

Sanity check before performing luksRemoveKey #4

Closed abarisani closed 9 years ago

abarisani commented 9 years ago

Currently the "Remove password" feature allows to remove the only available password, effectively locking out the user from the encrypted partition. Consider implementing a sanity check that warns the user when the last password is about to be deleted.

abarisani commented 9 years ago

For simplicity, and to account for the fact that we rather prefer the user to keep track of actually remembered passwords rather than trust the "last slot", we address this in 270110b92822bb2986fd0bfac6a2294846e3cd3b by placing and unconditional warning.