From 1ffe4e16906c3b57b9fb383e85c90d64369d8872 Mon Sep 17 00:00:00 2001 From: Youmin Ha Date: Fri, 13 Mar 2015 14:14:46 +0900 Subject: [PATCH] Fix the path of each application passed to security manager Wrong path of each application was passed to the security manager. It causes installation failure. This commit fixes the installed application path. Change-Id: I0b95e528ef2f4c41091b4e60bb9f42e1dce02333 Signed-Off-By: Youmin Ha Signed-Off-By: Sangyoon Jang --- src/common/security_registration.cc | 6 ++++-- src/common/step/step_security.cc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/security_registration.cc b/src/common/security_registration.cc index 92ed404..1660829 100644 --- a/src/common/security_registration.cc +++ b/src/common/security_registration.cc @@ -135,7 +135,8 @@ bool RegisterSecurityContextForApps( if (!ui->appid) { return false; } - if (!RegisterSecurityContext(ui->appid, pkg_id, path, manifest)) { + if (!RegisterSecurityContext(ui->appid, pkg_id, + path/ui->appid, manifest)) { return false; } } @@ -146,7 +147,8 @@ bool RegisterSecurityContextForApps( if (!svc->appid) { return false; } - if (!RegisterSecurityContext(svc->appid, pkg_id, path, manifest)) { + if (!RegisterSecurityContext(svc->appid, pkg_id, + path/svc->appid, manifest)) { return false; } } diff --git a/src/common/step/step_security.cc b/src/common/step/step_security.cc index 573d7c6..12fdf26 100644 --- a/src/common/step/step_security.cc +++ b/src/common/step/step_security.cc @@ -11,7 +11,7 @@ namespace security { Step::Status StepSecurity::process() { if (!RegisterSecurityContextForApps( - context_->pkgid(), context_->GetRootApplicationPath(), + context_->pkgid(), context_->GetApplicationPath(), context_->manifest_data())) { return Status::ERROR; } -- 2.7.4