Revert "Check privacy before executing an application" 47/125147/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 14 Apr 2017 04:17:21 +0000 (13:17 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 14 Apr 2017 04:17:29 +0000 (13:17 +0900)
This reverts commit ec97ec0b1970a40bf1afa08c7efc3b3e52ab99a8.

Change-Id: I0568a14bbf665abfea8a8e0bae85feb58cf2de1e

src/launchpad.c
src/launchpad_lib.c

index fef9868..5cf71de 100755 (executable)
@@ -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;
index c73c4fd..927046e 100644 (file)
@@ -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 - " \