Revert "Mount ext4 components."

This reverts commit ac1055a2dce254089e7fee1546db7b12dc830d7b.

Reason for revert:

This might be causing imageloader to crash on LoadComponentAtPath. See:

https://wmatrix.googleplex.com/unfiltered?hide_missing=True&releases=tot&tests=platform_ImageLoaderServer

Original change's description:
> Mount ext4 components.
>
> This is a patch to read the fs-type from the manifest and pass it
> over to the helper process that does the mounting.
>
> BUG=b:63680855
> TEST=FEATURES=\"test\" emerge-${BOARD} imageloader
>
> Change-Id: Ie2ec5a5877f9ca000bdd41fac6018e7c14b0968e
> Reviewed-on: https://chromium-review.googlesource.com/590576
> Commit-Ready: Xiaochu Liu <xiaochu@chromium.org>
> Tested-by: Xiaochu Liu <xiaochu@chromium.org>
> Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
> Reviewed-by: Xiaochu Liu <xiaochu@chromium.org>

Bug: b:63680855
Change-Id: I78ae120ee0b9f7c5bcf0a682c70f6e2f455ef4f2
Reviewed-on: https://chromium-review.googlesource.com/611490
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Xiaochu Liu <xiaochu@chromium.org>
19 files changed
tree: 96d42b7250a5d1776aec0584047de60edcaa5166
  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.cc
  14. imageloader.conf
  15. imageloader.gyp
  16. imageloader.h
  17. imageloader_impl.cc
  18. imageloader_impl.h
  19. imageloader_main.cc
  20. imageloader_unittest.cc
  21. imageloader_wrapper
  22. ipc.proto
  23. mock_helper_process.h
  24. mock_verity_mounter.h
  25. mount_helper.cc
  26. mount_helper.h
  27. README.md
  28. run_tests.cc
  29. test_utilities.cc
  30. test_utilities.h
  31. verity_mounter.cc
  32. 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.