summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyoon Jang <s89.jang@samsung.com>2015-08-18 14:48:48 +0900
committerSangyoon Jang <s89.jang@samsung.com>2015-08-18 14:51:22 +0900
commit8caf07edb322d7b30b9adb1ac5c157af9ebcc18d (patch)
treebd0e6ce1852746bcf80a419d66a6bc953cbe9fb3
parent4cc2046e84bd867b52dc32813cd82f8c69515799 (diff)
downloadaul-1-8caf07edb322d7b30b9adb1ac5c157af9ebcc18d.tar.gz
aul-1-8caf07edb322d7b30b9adb1ac5c157af9ebcc18d.tar.bz2
aul-1-8caf07edb322d7b30b9adb1ac5c157af9ebcc18d.zip
Change-Id: If0ce1ece84de1640dde15b026f2b94d52a283c85 Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
-rw-r--r--am_daemon/amd_request.c9
-rw-r--r--include/menu_db_util.h5
-rw-r--r--include/simple_util.h1
3 files changed, 6 insertions, 9 deletions
diff --git a/am_daemon/amd_request.c b/am_daemon/amd_request.c
index 509753d8..64982a78 100644
--- a/am_daemon/amd_request.c
+++ b/am_daemon/amd_request.c
@@ -430,13 +430,12 @@ static gboolean __request_handler(gpointer data)
kb = bundle_decode(pkt->data, pkt->len);
appid = (char *)bundle_get_val(kb, AUL_K_APPID);
if (cr.uid == 0) {
- _E("Root user request to start app assumming this is done by system deamon... Please fix it...switch to DEFAULT_USER");
- ret = _start_app(appid, kb, pkt->cmd, cr.pid, DEFAULT_USER, clifd);
- }
- else {
+ _E("request from root, treat as global user");
+ ret = _start_app(appid, kb, pkt->cmd, cr.pid, GLOBAL_USER, clifd);
+ } else {
ret = _start_app(appid, kb, pkt->cmd, cr.pid, cr.uid, clifd);
}
- if(ret > 0) {
+ if (ret > 0) {
item = calloc(1, sizeof(item_pkt_t));
if (item == NULL) {
_E("out of memory");
diff --git a/include/menu_db_util.h b/include/menu_db_util.h
index 2b7bdb9c..fbba0060 100644
--- a/include/menu_db_util.h
+++ b/include/menu_db_util.h
@@ -208,9 +208,8 @@ static inline app_info_from_db *_get_app_info_from_db_by_apppath_user(
int ret = PMINFO_R_OK;
if (uid == 0) {
- _E("Root user request to start app assumming this is done by"
- "system deamon... Please fix it...switch to DEFAULT_USER");
- uid = DEFAULT_USER;
+ _E("request from root, treat as global user");
+ uid = GLOBAL_USER;
}
if (apppath == NULL)
diff --git a/include/simple_util.h b/include/simple_util.h
index b855b49e..cf744e03 100644
--- a/include/simple_util.h
+++ b/include/simple_util.h
@@ -29,7 +29,6 @@
#include <tzplatform_config.h>
#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
-#define DEFAULT_USER tzplatform_getuid(TZ_SYS_DEFAULT_USER)
#undef LOG_TAG
#define LOG_TAG "AUL"