commit | 1c3fbed9123c081c73b1bc97f755ccf7a753b74d | [log] [tgz] |
---|---|---|
author | Xiaochu Liu <xiaochu@chromium.org> | Mon Nov 13 21:59:12 2017 |
committer | chrome-bot <chrome-bot@chromium.org> | Sat Nov 18 04:18:47 2017 |
tree | 26a3051c85d5401290a097eb6b9266af8b8d0864 | |
parent | aa5ede6d71d5305b1f67c3d319ef77f379071c58 [diff] |
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 <xiaochu@chromium.org> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Greg Kerr <kerrnel@chromium.org>
This aims to provide a generic utility to verify and load (mount) signed disk images through DBUS IPC.
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.