|author||Xiaochu Liu <email@example.com>||Mon Nov 13 21:59:12 2017|
|committer||chrome-bot <firstname.lastname@example.org>||Sat Nov 18 04:18:47 2017|
Support umount in helper_process Currently mount points cleanup is called directly in imageloader_main without sandboxing. In order for cleanup to work in non-root user in sandboxed environment (dbus call), I provide a method in helper_process to perform umount in sandbox as root. It also fixes a bug in message deserialization where message could be cut shorter accidentally due to encoding with string delimeter in the middle. BUG=chromium:784031,chromium:782334 TEST=unittest, mount/umount images on DuT Change-Id: Ib4c7522c96165c6ffae4cb0342137f8a0bdcc07b Reviewed-on: https://chromium-review.googlesource.com/767024 Commit-Ready: Xiaochu Liu <email@example.com> Tested-by: Xiaochu Liu <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.