From 3d7d02d6506ba6ff250c95ddd74eb3ec05c4143c Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Wed, 2 Mar 2016 12:50:06 +0100 Subject: [PATCH] [KeyManager] Privileges have been removed. Change-Id: I83e8cf766aa0f5988fb6292a86e46958baec04f4 Signed-off-by: Pawel Andruszkiewicz --- src/keymanager/keymanager_instance.cc | 8 -------- src/utils/utils_api.js | 1 - 2 files changed, 9 deletions(-) diff --git a/src/keymanager/keymanager_instance.cc b/src/keymanager/keymanager_instance.cc index 13379c9..1a401e0 100644 --- a/src/keymanager/keymanager_instance.cc +++ b/src/keymanager/keymanager_instance.cc @@ -38,9 +38,6 @@ using common::TaskQueue; namespace { -// Privileges required in KeyManager API -const std::string kPrivilegeKeyManager = "http://tizen.org/privilege/keymanager"; - typedef std::vector RawBuffer; typedef int (*AliasListFunction)(ckmc_alias_list_s**); @@ -107,7 +104,6 @@ KeyManagerInstance::KeyManagerInstance() { void KeyManagerInstance::GetDataAliasList(const picojson::value& args, picojson::object& out) { LoggerD("Enter"); - CHECK_PRIVILEGE_ACCESS(kPrivilegeKeyManager, &out); GetGenericAliasList(ckmc_get_data_alias_list, &out); } @@ -138,7 +134,6 @@ PlatformResult KeyManagerInstance::GetError(int ret) { void KeyManagerInstance::SaveData(const picojson::value& args, picojson::object& out) { LoggerD("Enter"); - CHECK_PRIVILEGE_ACCESS(kPrivilegeKeyManager, &out); std::string data_raw = args.get("rawData").get(); std::string alias = args.get("aliasName").get(); @@ -193,7 +188,6 @@ void KeyManagerInstance::SaveData(const picojson::value& args, void KeyManagerInstance::GetData(const picojson::value& args, picojson::object& out) { LoggerD("Enter"); - CHECK_PRIVILEGE_ACCESS(kPrivilegeKeyManager, &out); const auto& data_alias = args.get("name").get(); const auto& password_value = args.get("password"); @@ -232,7 +226,6 @@ KeyManagerInstance::~KeyManagerInstance() { void KeyManagerInstance::RemoveAlias(const picojson::value& args, picojson::object& out) { LoggerD("Enter"); - CHECK_PRIVILEGE_ACCESS(kPrivilegeKeyManager, &out); const std::string& alias = args.get("aliasName").get(); int ret = ckmc_remove_alias(alias.c_str()); @@ -249,7 +242,6 @@ void KeyManagerInstance::RemoveAlias(const picojson::value& args, void KeyManagerInstance::SetPermission(const picojson::value& args, picojson::object& out) { LoggerD("Enter"); - CHECK_PRIVILEGE_ACCESS(kPrivilegeKeyManager, &out); const std::string& data_name = args.get("aliasName").get(); const std::string& id = args.get("packageId").get(); diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 5353893..79403e0 100644 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -99,7 +99,6 @@ function Utils() { FILESYSTEM_WRITE: 'http://tizen.org/privilege/systemsettings.admin', HEALTHINFO: 'http://tizen.org/privilege/healthinfo', INTERNET: 'http://tizen.org/privilege/internet', - KEYMANAGER: 'http://tizen.org/privilege/keymanager', LED: 'http://tizen.org/privilege/led', LOCATION: 'http://tizen.org/privilege/location', MEDIACONTROLLER_SERVER: 'http://tizen.org/privilege/mediacontroller.server', -- 2.7.4