projects
/
platform
/
core
/
appfw
/
app2sd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aac8d1
)
Modified permission check
87/185487/2
author
Hwankyu Jhun
<h.jhun@samsung.com>
Tue, 31 Jul 2018 05:59:50 +0000
(14:59 +0900)
committer
Hwankyu 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
patch
|
blob
|
history
diff --git
a/plugin/app2sd/server/app2sd_server.c
b/plugin/app2sd/server/app2sd_server.c
index
d9e0914
..
2da273f
100644
(file)
--- a/
plugin/app2sd/server/app2sd_server.c
+++ b/
plugin/app2sd/server/app2sd_server.c
@@
-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;
}