Add StepPrivilegeCompatibility at RecoverySteps 80/167180/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 16 Jan 2018 05:32:12 +0000 (14:32 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 16 Jan 2018 05:32:12 +0000 (14:32 +0900)
To recover internal privileges, StepPrivilegeCompatibility should be
added.

Change-Id: Ie54f07f0354f85a504344914eee4486a581fecd2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/tpk/tpk_installer.cc

index 4fd0d2b..a155b12 100644 (file)
@@ -355,6 +355,8 @@ void TpkInstaller::RecoverySteps() {
   AddStep<ci::filesystem::StepRecoverFiles>();
   AddStep<ci::mount::StepMountRecover>();
   AddStep<tpk::security::StepTpkRecoverSignature>();
+  AddStep<ci::security::StepPrivilegeCompatibility>(
+      ci::security::StepPrivilegeCompatibility::InternalPrivType::TPK);
   AddStep<ci::filesystem::StepRecoverChangeOwner>();
   AddStep<ci::security::StepRecoverSecurity>();
   AddStep<ci::pkgmgr::StepRecoverApplication>();