[Security] Fix passing path in StepRevokeSecurity::undo() 80/37180/1
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 17 Mar 2015 13:48:55 +0000 (14:48 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Fri, 20 Mar 2015 08:45:46 +0000 (09:45 +0100)
RegisterSecurityContextForApps() takes path to the root of
application (where the index.html is located).

Same as in: https://review.tizen.org/gerrit/#/c/36757/

Change-Id: Id46a569e4d140951edeecf7e7fba1c377c2b2daf

src/common/step/step_revoke_security.cc

index 9b1fb4e..3db369c 100644 (file)
@@ -22,7 +22,7 @@ Step::Status StepRevokeSecurity::process() {
 
 Step::Status StepRevokeSecurity::undo() {
   if (!RegisterSecurityContextForApps(
-      context_->pkgid(), context_->GetRootApplicationPath(),
+      context_->pkgid(), context_->GetApplicationPath(),
       context_->manifest_data())) {
     LOG(ERROR) << "Failure on re-installing security context for app "
                << context_->pkgid();