diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-04-14 13:19:03 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2017-04-14 13:19:21 +0900 |
commit | 057e9c48ea1a976aaff29251311dc91554284373 (patch) | |
tree | 8392dee1fb7f259a6f87c4f77074a02d18b2e009 | |
parent | aea0dfef35062ac64e64ac733f77c8b66c034f7a (diff) | |
download | launchpad-057e9c48ea1a976aaff29251311dc91554284373.tar.gz launchpad-057e9c48ea1a976aaff29251311dc91554284373.tar.bz2 launchpad-057e9c48ea1a976aaff29251311dc91554284373.zip |
Revert "Check privacy before executing an application"
This reverts commit aea0dfef35062ac64e64ac733f77c8b66c034f7a.
Change-Id: Ib00470ce0510ff2201e558084ed9cdd0da12645c
-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 - " \ |