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

Change-Id: I4a162bfc3f2fd00ccbf6724f691e6bf98c4b4262
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/wgt/wgt_installer.cc

index b90690b..b502737 100755 (executable)
@@ -352,6 +352,8 @@ void WgtInstaller::RecoverySteps() {
   AddStep<ci::filesystem::StepRecoverFiles>();
   AddStep<ci::mount::StepMountRecover>();
   AddStep<wgt::security::StepWgtRecoverSignature>();
+  AddStep<ci::security::StepPrivilegeCompatibility>(
+      ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
   AddStep<ci::filesystem::StepRecoverChangeOwner>();
   AddStep<ci::security::StepRecoverSecurity>();
   AddStep<ci::pkgmgr::StepRecoverApplication>();