From: Tomasz Iwanek Date: Tue, 17 Mar 2015 13:48:55 +0000 (+0100) Subject: [Security] Fix passing path in StepRevokeSecurity::undo() X-Git-Tag: accepted/tizen/common/20150331.085109~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61cb93d1912bcbd7137d9e93ee991a9872d4a8a0;p=platform%2Fcore%2Fappfw%2Fapp-installers.git [Security] Fix passing path in StepRevokeSecurity::undo() 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 --- diff --git a/src/common/step/step_revoke_security.cc b/src/common/step/step_revoke_security.cc index 9b1fb4e..3db369c 100644 --- a/src/common/step/step_revoke_security.cc +++ b/src/common/step/step_revoke_security.cc @@ -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();