From fed82415b9ecd63417a9e80aa9d443e0cc4c158b Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Fri, 14 Apr 2017 13:17:21 +0900 Subject: [PATCH] Revert "Check privacy before executing an application" This reverts commit ec97ec0b1970a40bf1afa08c7efc3b3e52ab99a8. Change-Id: I0568a14bbf665abfea8a8e0bae85feb58cf2de1e --- src/launchpad.c | 9 +-------- src/launchpad_lib.c | 10 +--------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/launchpad.c b/src/launchpad.c index fef9868..5cf71de 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -707,15 +707,8 @@ static int __prepare_exec(const char *appid, const char *app_path, /* TODO : should be add to check permission in the kernel*/ setsid(); + /* SET PRIVILEGES*/ if (bundle_get_val(kb, AUL_K_PRIVACY_APPID) == NULL) { - /* CHECK PRIVACY */ - ret = security_manager_prepare_app_privacy(appid); - if (ret != SECURITY_MANAGER_SUCCESS) { - _W("Launching %s has been prohibited", appid); - return PAD_ERR_REJECTED; - } - - /* SET PRIVILEGES*/ ret = security_manager_prepare_app(appid); if (ret != SECURITY_MANAGER_SUCCESS) return PAD_ERR_REJECTED; diff --git a/src/launchpad_lib.c b/src/launchpad_lib.c index c73c4fd..927046e 100644 --- a/src/launchpad_lib.c +++ b/src/launchpad_lib.c @@ -67,17 +67,9 @@ static int __prepare_exec(const char *appid, const char *app_path, __preexec_run(pkg_type, appid, app_path); + /* SET PRIVILEGES*/ SECURE_LOGD("[candidata] appid : %s / pkg_type : %s / app_path : %s", appid, pkg_type, app_path); - - /* CHECK PRIVACY */ - ret = security_manager_prepare_app_privacy(appid); - if (ret != SECURITY_MANAGER_SUCCESS) { - _W("Launching %s has been prohibited", appid); - return -1; - } - - /* SET PRIVILEGES*/ ret = security_manager_prepare_app(appid); if (ret != SECURITY_MANAGER_SUCCESS) { _D("fail to set privileges - " \ -- 2.7.4