commit | 2b5454d316b564e63b6f5afa5e0018a014d81365 | [log] [tgz] |
---|---|---|
author | John Edward Broadbent <jebr@google.com> | Thu Apr 14 19:28:12 2022 -0700 |
committer | John Broadbent <jebr@google.com> | Sat Apr 16 00:55:56 2022 +0000 |
tree | 70023e2f7e3c983390075b06fed6d86bdddcbcca | |
parent | 34a75f0559f348c0635d8be416f22acd6449eb94 [diff] |
fix error handling for CryptHandle.get The old code calls CryptHandle once to make sure it is valid, then calls it again to use it. Tested: busctl call xyz.openbmc_project.eStoraged.mmcblk0 \ > /xyz/openbmc_project/inventory/storage/mmcblk0 \ > xyz.openbmc_project.Inventory.Item.Volume FormatLuks ays 3 1 2 3 \ > xyz.openbmc_project.Inventory.Item.Volume.FilesystemType.ext4 \ > --timeout=60 Signed-off-by: John Edward Broadbent <jebr@google.com> Change-Id: I21c02315c365e74ead3d0b5b2578c62503376756
This daemon serves as an abstraction for an encrypted storage device, encapsulating the security functionality and providing a D-Bus interface to manage the encrypted filesystem on the device. Using the D-Bus interface, other software components can interact with eStoraged to do things like create a new encrypted filesystem, wipe its contents, lock/unlock the device, or change the password.