diff options
-rwxr-xr-x | src/launchpad.c | 9 | ||||
-rw-r--r-- | src/launchpad_lib.c | 10 |
2 files changed, 2 insertions, 17 deletions
diff --git a/src/launchpad.c b/src/launchpad.c index e316954..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 denied.", 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 ce13216..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 denied.", appid); - return -1; - } - - /* SET PRIVILEGES*/ ret = security_manager_prepare_app(appid); if (ret != SECURITY_MANAGER_SUCCESS) { _D("fail to set privileges - " \ |