Change the user of update-manager.service to root 85/275385/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 20 May 2022 12:00:35 +0000 (14:00 +0200)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 24 May 2022 03:55:26 +0000 (03:55 +0000)
commit76435ed70ae7a99409f1d94d39a183edc5a24bbb
tree4b35d4d28013acef1975d1d151d9ec0d5703ac35
parent1bf04f9c77b533dbde26a6064feae52f0deefc53
Change the user of update-manager.service to root

During the upgrade the service must run the delta.ua program supplied in
the delta.tar file to correctly execute the entire process.

Thus, it's infeasible to depend on POSIX file capabilities as the
delta.ua from upgrade package (delta.tar) will not have it.  This leaves
us with either (1) need to apply needed caps in runtime (de facto
requiring super privileges for the process controlling this action), or
(2) simplifying the process and changing the user of update-manager to
root.

This commit implements (2) option as, in practice, this program is
responsible for flashing complete platform images so it effectively has
every permission possible (as it can flash any data of its choosing)

Change-Id: I33477c7a9981fb59effd1846c8733ff8e77c752b
(cherry picked from commit 1947ff870e848333d155f375ff5aaa6bcb0c30db)
packaging/update-manager.conf
packaging/update-manager.service