e_policy_wl: remove privilege checking of tws_shared_widget_launch interface 42/216142/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Mon, 21 Oct 2019 09:03:31 +0000 (18:03 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Mon, 21 Oct 2019 09:03:50 +0000 (18:03 +0900)
Change-Id: I18450fffe253fc367b3f2a9132cf3189bdfe29ab
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
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)
      {