imageloader: Added an unmount_all flag.

BUG=chromium:760007
BUG=chromium:772132
CQ-DEPEND=CL:690815
CQ-DEPEND=CL:701574
TEST=test_that -b amd64-generic <ip:port> platform_ImageLoaderServer

Change-Id: I1739d36c086c1a124d2c4c79ed2ec05b1fdd2987
Reviewed-on: https://chromium-review.googlesource.com/677792
Commit-Ready: Allen Webb <allenwebb@google.com>
Tested-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
(cherry picked from commit c1a83d303c0643d8d089d501a29a583268d3f43a)
Reviewed-on: https://chromium-review.googlesource.com/701594
Trybot-Ready: Allen Webb <allenwebb@google.com>
Reviewed-by: Allen Webb <allenwebb@google.com>
Commit-Queue: Allen Webb <allenwebb@google.com>
7 files changed
tree: 64f2a2d6ef7c1c44b9377d146b70ed76295940de
  1. dbus_adaptors/
  2. dbus_permissions/
  3. dbus_service/
  4. public_keys/
  5. seccomp/
  6. testdata/
  7. .presubmitignore
  8. component.cc
  9. component.h
  10. component_unittest.cc
  11. helper_process.cc
  12. helper_process.h
  13. imageloader-shutdown.conf
  14. imageloader.cc
  15. imageloader.conf
  16. imageloader.gyp
  17. imageloader.h
  18. imageloader_impl.cc
  19. imageloader_impl.h
  20. imageloader_main.cc
  21. imageloader_unittest.cc
  22. imageloader_wrapper
  23. ipc.proto
  24. mock_helper_process.h
  25. mock_verity_mounter.h
  26. mount_helper.cc
  27. mount_helper.h
  28. README.md
  29. run_tests.cc
  30. test_utilities.cc
  31. test_utilities.h
  32. verity_mounter.cc
  33. verity_mounter.h
  34. verity_mounter_impl.cc
  35. verity_mounter_impl.h
  36. verity_mounter_unittest.cc
README.md

src/platform/imageloader

This aims to provide a generic utility to verify and load (mount) signed disk images through DBUS IPC.

Binaries

  • imageloader

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.