|author||Eric Caruso <email@example.com>||Wed Mar 15 21:21:08 2017|
|committer||chrome-bot <firstname.lastname@example.org>||Thu Mar 16 21:23:37 2017|
imageloader: replace Init function with static factory method The static factory method prevents use between construction and initialization by only returning a value if initialization succeeds. This allows us to get rid of the initialized_ member and several CHECKs, since users will never see a value if it fails during LoadManifest. This is preferred style (see go/totw/42). This also makes IsValidFingerprintFile static since it doesn't depend on any members, which slightly simplifies a test. The CopyValidImage test is left untouched because it is marked a friend and has access to the private constructor and because its use case is somewhat more complicated. BUG=None TEST=unit tests Change-Id: I1af21db9b3b8af285b191e4982898ddec46e35c9 Reviewed-on: https://chromium-review.googlesource.com/456042 Commit-Ready: Eric Caruso <email@example.com> Tested-by: Eric Caruso <firstname.lastname@example.org> Reviewed-by: Greg Kerr <email@example.com>
This aims to provide a generic utility to verify and load (mount) signed disk images through DBUS IPC.
imageloader handles the mounting of disk images.
imageloader should be executed via the
imageloader_wrapper script, which ensures that imageloader's storage exists and is owned by
imageloaderd user. When
imageloader is not running, DBus will automatically invoke it. After 20 seconds of inactivity, the service exits.