From a13100d77fcfeb2cfc6cbc70f66263cb449218a9 Mon Sep 17 00:00:00 2001 From: jooseong lee Date: Mon, 9 May 2016 15:19:17 +0900 Subject: [PATCH] Use wildcard user in cynara policy installing a preloaded app Preloaded app is a global app, which is installed in TZ_SYS_RO. User credential in cynara app policy should be wildcard. Change-Id: I54841d051d1e7671e23e2cecae0a1ed1a601395a Signed-off-by: jooseong lee --- src/common/service_impl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/service_impl.cpp b/src/common/service_impl.cpp index 89b4c57..9e4cb22 100755 --- a/src/common/service_impl.cpp +++ b/src/common/service_impl.cpp @@ -259,15 +259,13 @@ void ServiceImpl::installRequestMangle(app_inst_req &req, std::string &cynaraUse SM_APP_INSTALL_GLOBAL : SM_APP_INSTALL_LOCAL; - if (req.installationType == SM_APP_INSTALL_GLOBAL) { + if (req.installationType == SM_APP_INSTALL_GLOBAL + || req.installationType == SM_APP_INSTALL_PRELOADED) { LogDebug("Installation type: global installation"); cynaraUserStr = CYNARA_ADMIN_WILDCARD; } else if (req.installationType == SM_APP_INSTALL_LOCAL) { LogDebug("Installation type: local installation"); cynaraUserStr = std::to_string(static_cast(req.uid)); - } else if (req.installationType == SM_APP_INSTALL_PRELOADED) { - LogDebug("Installation type: preloaded installation"); - cynaraUserStr = std::to_string(static_cast(req.uid)); } else LogError("Installation type: unknown"); } -- 2.7.4