Revert "Revert "e_policy_wl: remove privilege checking of tws_shared_widget_launch... 89/216389/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 24 Oct 2019 08:53:19 +0000 (17:53 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 4 Nov 2019 05:23:53 +0000 (05:23 +0000)
This reverts commit f6f8ef484337b8aabb462763d946491e89188887.

Change-Id: I6c322d7551873ba8dcd598dcf80b87e6d34e0a4b

src/bin/e_policy_wl.c

index 7b091ca998e8956964e54d02d4ef6944d5b12114..88d695646a34cd1080074b1a615bc1b1f86a4164 100644 (file)
@@ -5658,8 +5658,6 @@ _tzsh_iface_cb_shared_widget_launch_get(struct wl_client *client,
    struct wl_resource *res_tzsh_swl;
    E_Client *ec;
    E_Pixmap *cp;
-   pid_t pid;
-   uid_t uid;
 
    tzsh = wl_resource_get_user_data(res_tzsh);
    if (!tzsh)
@@ -5671,16 +5669,6 @@ _tzsh_iface_cb_shared_widget_launch_get(struct wl_client *client,
         return;
      }
 
-   wl_client_get_credentials(client, &pid, &uid, NULL);
-   if (!e_security_privilege_check(pid, uid, E_PRIVILEGE_SOFTKEY))
-     {
-        ERR("Could not get privilege of resource: %m");
-        tizen_ws_shell_send_error(tzsh->res_tzsh, TIZEN_WS_SHELL_ERROR_PERMISSION_DENIED);
-        return;
-     }
-   else
-     tizen_ws_shell_send_error(tzsh->res_tzsh, TIZEN_WS_SHELL_ERROR_NONE);
-
    cp = _e_policy_wl_e_pixmap_get_from_id(client, surf_id);
    if (!cp)
      {