Perform StepRevokeSecurity after StepRemove 46/37046/1
authorRafal Krypa <r.krypa@samsung.com>
Wed, 18 Mar 2015 11:07:19 +0000 (12:07 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Wed, 18 Mar 2015 11:07:42 +0000 (12:07 +0100)
Revoking security configuration causes StepRemove to fail.
Application files are labeled with per-app Smack label.
Access to that label is part of security configuration which shouldn't
be revoked before files are uninstalled.

Change-Id: Ib41ca3b04324f307954c64fa93cdefaf9da0325b
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/tpk/task.cc
src/wgt/wgt_backend.cc

index d02545f..892c043 100644 (file)
@@ -105,9 +105,9 @@ bool Task::Uninstall() {
 
   ai.AddStep<ci::parse::StepParse>();
   ai.AddStep<ci::signal::StepSignal>();
-  ai.AddStep<ci::revoke_security::StepRevokeSecurity>();
   ai.AddStep<ci::unregister::StepUnregister>();
   ai.AddStep<ci::remove::StepRemove>();
+  ai.AddStep<ci::revoke_security::StepRevokeSecurity>();
 
   return ai.Run();
 }
index 1f45ab7..70b82e5 100644 (file)
@@ -59,9 +59,9 @@ int main(int argc, char** argv) {
     case PKGMGR_REQ_UNINSTALL: {
       installer.AddStep<ci::parse::StepParse>();
       installer.AddStep<ci::signal::StepSignal>();
-      installer.AddStep<ci::revoke_security::StepRevokeSecurity>();
       installer.AddStep<ci::unregister::StepUnregister>();
       installer.AddStep<ci::remove::StepRemove>();
+      installer.AddStep<ci::revoke_security::StepRevokeSecurity>();
       break;
     }
     default: {