commit | e6ffe7040eb28d8ea2a242177d2780516b6f5cf0 | [log] [tgz] |
---|---|---|
author | John Edward Broadbent <jebr@google.com> | Thu Oct 14 14:03:11 2021 -0700 |
committer | John Edward Broadbent <jebr@google.com> | Thu Dec 09 10:35:56 2021 -0800 |
tree | d1f453606c1f41f44c53eada011f8a25f3e15eb8 | |
parent | b810c926021976665707f90d460aec0300f5ccf1 [diff] |
Add Erase verifyGeometry This confirms specified amount of the drive is accessible. The min and max expected drive size are set as a build configuration, and compared against the drive size (found by using the linux ioctl). Also adds testing build files, testing options, and verifyGeometry test. Tested: Ran eStoraged on a machine with an eMMC, using the following $ ./eStoraged -b /dev/mmcblk0 & $ busctl call xyz.openbmc_project.eStoraged.mmcblk0 \ /xyz/openbmc_project/storage/mmcblk0 \ xyz.openbmc_project.eStoraged Erase ays 1 1 \ xyz.openbmc_project.eStoraged.EraseMethod.VerifyGeometry Signed-off-by: John Edward Broadbent <jebr@google.com> Change-Id: Ie47f8666996a6085a115d1b86f2643bc278638c5
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.