Add script to unloaded loaded images

Add script to unload PepperFlashPlayer, its device mapper and loop devices.
It ensurses we can unmount encstateful and stateful properly.

BUG=chromium:760007
CQ-DEPEND=CL:669704
TEST=On cyan, check that dm-1 and mmcblk0p1 are mounted without repairs.

Change-Id: I3f065890968d59484acc74e3aed0ea8e307d752b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/669910
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
2 files changed
tree: b4bf061ba5a225dc2bfd777d817be7d8d244bd7c
  1. .presubmitignore
  2. README.md
  3. component.cc
  4. component.h
  5. component_unittest.cc
  6. dbus_adaptors/
  7. dbus_permissions/
  8. dbus_service/
  9. helper_process.cc
  10. helper_process.h
  11. imageloader-shutdown.conf
  12. imageloader.cc
  13. imageloader.conf
  14. imageloader.gyp
  15. imageloader.h
  16. imageloader_impl.cc
  17. imageloader_impl.h
  18. imageloader_main.cc
  19. imageloader_unittest.cc
  20. imageloader_wrapper
  21. ipc.proto
  22. mock_helper_process.h
  23. mock_verity_mounter.h
  24. mount_helper.cc
  25. mount_helper.h
  26. public_keys/
  27. run_tests.cc
  28. seccomp/
  29. test_utilities.cc
  30. test_utilities.h
  31. testdata/
  32. verity_mounter.cc
  33. verity_mounter.h
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.