Set up the repo and the skeleton of DLC Service in /platform2/dlc_service.
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/eclass-overlay/+/02a424b5fed6bdb541878c8f5e2715717e3f6ccb commit 02a424b5fed6bdb541878c8f5e2715717e3f6ccb Author: Xiaochu Liu <xiaochu@chromium.org> Date: Tue Jul 03 21:59:28 2018 add new user/group for dlcservice dlcservice is a dbus service for CrOS DownLoadable Content (DLC). We add a new user/group pair for dlcservice for better security. BUG= chromium:852164 TEST=None Change-Id: I505e9524e337aaf7ee4203bef7ed49d4f99852ea Reviewed-on: https://chromium-review.googlesource.com/1114298 Commit-Ready: Xiaochu Liu <xiaochu@chromium.org> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Chirantan Ekbote (OOO 07/03 - 07/09) <chirantan@chromium.org> Reviewed-by: Nicolas Norvez <norvez@chromium.org> [add] https://crrev.com/02a424b5fed6bdb541878c8f5e2715717e3f6ccb/profiles/base/accounts/user/dlcservice [add] https://crrev.com/02a424b5fed6bdb541878c8f5e2715717e3f6ccb/profiles/base/accounts/group/dlcservice
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/system_api/+/81215463d2db15a761968f3a541ae4dceac10c3e commit 81215463d2db15a761968f3a541ae4dceac10c3e Author: Xiaochu Liu <xiaochu@chromium.org> Date: Fri Jul 20 12:31:09 2018 dlcservice: add service constants Constants include interface, name, path and 2 methods. BUG= chromium:852164 TEST=None Change-Id: I9cd2b27a8823a78ba46ca7ec130436dfb85915de Reviewed-on: https://chromium-review.googlesource.com/1136668 Commit-Ready: Xiaochu Liu <xiaochu@chromium.org> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Xiaochu Liu <xiaochu@chromium.org> [modify] https://crrev.com/81215463d2db15a761968f3a541ae4dceac10c3e/dbus/service_constants.h
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/1ccaed96b43acaed70bf76dfcd73dd7042e0159d commit 1ccaed96b43acaed70bf76dfcd73dd7042e0159d Author: Xiaochu Liu <xiaochu@chromium.org> Date: Mon Jul 23 19:59:50 2018 dlc_service: bootstrap dlc service d-bus daemon Start a minimal d-bus daemon to begin with. Currently it exits immediately after invoked via command line or d-bus method call. * d-bus bindings/adapters/permissions. * implement the d-bus daemon class DlcService. * build file * upstart file * seccomp files (populated on bob and kefka) * OWNER, README.md, etc. * enable clang-format-check BUG= chromium:852164 TEST=emerge&cros deploy, sudo -u dlcservice dbus-send --system --type=method_call --print-reply --dest=org.chromium.DlcService /org/chromium/DlcService org.chromium.DlcServiceInterface.Uninstall "string:lulu", start dlcservice, stop dlcservice. Change-Id: Ifc12096c7e165506956cdfaf9b82813df9a7e734 Reviewed-on: https://chromium-review.googlesource.com/1114313 Commit-Ready: Xiaochu Liu <xiaochu@chromium.org> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org> [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/seccomp/dlcservice-seccomp-arm.policy [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dbus_adaptors/dbus-service-config.json [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dbus_adaptors/org.chromium.DlcServiceInterface.xml [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/org.chromium.DlcService.conf [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/OWNER [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/main.cc [modify] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/PRESUBMIT.cfg [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlc_service.cc [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/README.md [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlc_service.h [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlc_service_dbus_adaptor.h [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/seccomp/dlcservice-seccomp-amd64.policy [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlcservice.conf [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlcservice.gyp [modify] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/README.md [add] https://crrev.com/1ccaed96b43acaed70bf76dfcd73dd7042e0159d/dlcservice/dlc_service_dbus_adaptor.cc
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ccede48582f7a49cc2657defa4a371a3dbe73427 commit ccede48582f7a49cc2657defa4a371a3dbe73427 Author: Xiaochu Liu <xiaochu@chromium.org> Date: Tue Jul 24 04:04:50 2018 dlc_service: add a 9999 ebuild This CL adds ebuild for dlcservice. The ebuild installs following: * a binary * a seccomp policy * an upstart conf file * a user/group pair BUG= chromium:852164 TEST=emerge-$BOARD dlcservice Change-Id: I08cb9c578ebce667066eb427d0e8c91b693ee2ff Reviewed-on: https://chromium-review.googlesource.com/1099368 Commit-Ready: Xiaochu Liu <xiaochu@chromium.org> Tested-by: Xiaochu Liu <xiaochu@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> [add] https://crrev.com/ccede48582f7a49cc2657defa4a371a3dbe73427/chromeos-base/dlcservice/dlcservice-9999.ebuild
Comment 1 by xiaochu@chromium.org
, Jun 12 2018