Modified permission check 87/185487/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 31 Jul 2018 05:59:50 +0000 (14:59 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 31 Jul 2018 06:07:22 +0000 (15:07 +0900)
If the target user is GLOBAL APP, the request is allowed.

Change-Id: Ib362cceabf8d36cb7cc9df8d809ea993ee1c1501
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
plugin/app2sd/server/app2sd_server.c

index d9e0914..2da273f 100644 (file)
@@ -211,7 +211,8 @@ static const gchar introspection_xml[] =
 static bool _app2sd_server_check_permission(uid_t sender_uid, uid_t target_uid)
 {
        if (sender_uid != 0 && sender_uid != APPFW_UID &&
-                       sender_uid != target_uid) {
+                       sender_uid != target_uid &&
+                       target_uid != GLOBAL_USER) {
                _E("Not permitted user!, uid(%d)", sender_uid);
                return false;
        }