summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamaljeet <kamal.jc@samsung.com>2018-07-13 15:05:41 +0530
committerkamaljeet <kamal.jc@samsung.com>2018-07-13 15:05:41 +0530
commit442a96893df642f27a367c6f419a0ef22eaf5db2 (patch)
tree893cfaf592e1067589b57bdb5af8c5d355667d02
parentbdab22801c12933a866104695e353e5573fb55f1 (diff)
downloadmsg-service-442a96893df642f27a367c6f419a0ef22eaf5db2.tar.gz
msg-service-442a96893df642f27a367c6f419a0ef22eaf5db2.tar.bz2
msg-service-442a96893df642f27a367c6f419a0ef22eaf5db2.zip
DBUS Policy Issues Resolved
Change-Id: I108780f4119bcb8b09758ee3512ca6e0d0610a64 Signed-off-by: kamaljeet <kamal.jc@samsung.com>
-rwxr-xr-xplugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp4
-rwxr-xr-xplugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp6
-rwxr-xr-xplugin/sms_plugin/SmsPluginMain.cpp4
-rwxr-xr-xplugin/sms_plugin/SmsPluginWapPushHandler.cpp6
-rw-r--r--utils/MsgCallStatusManager.cpp4
-rwxr-xr-xutils/MsgUtilFunction.cpp2
6 files changed, 13 insertions, 13 deletions
diff --git a/plugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp b/plugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp
index 030f3b1..977d7a4 100755
--- a/plugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp
+++ b/plugin/sms_cdma_plugin/SmsCdmaPluginMain.cpp
@@ -356,10 +356,10 @@ void MsgResourceMonitorInit(void)
gdbus_proxy = NULL;
}
- gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+ gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, BUS_NAME, PATH_NAME, INTERFACE_NAME, NULL, &error);
if (error) {
- MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+ MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
g_error_free(error);
error = NULL;
goto _DBUS_ERROR;
diff --git a/plugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp b/plugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp
index 48b3d16..588f04b 100755
--- a/plugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp
+++ b/plugin/sms_cdma_plugin/SmsCdmaPluginWapPushHandler.cpp
@@ -1015,7 +1015,7 @@ static void launchProcessByAppcode(int appcode)
MSG_DEBUG("Connecting to system bus failed: %s\n", error->message);
goto _DBUS_ERROR;
}
- dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE,
+ dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, "org.tizen.omadmagent", "/org/tizen/omadmagent",
"org.tizen.omadmagent", NULL, &error);
if (error) {
@@ -1032,7 +1032,7 @@ static void launchProcessByAppcode(int appcode)
MSG_DEBUG("Connecting to system bus failed: %s\n", error->message);
goto _DBUS_ERROR;
}
- dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
"org.tizen.omadmservice", "/org/tizen/omadmservice",
"org.tizen.omadmservice", NULL, &error);
if (error) {
@@ -1060,7 +1060,7 @@ static void launchProcessByAppcode(int appcode)
goto _DBUS_ERROR;
}
- dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
"org.tizen.omadsagent", "/org/tizen/omadsagent",
"org.tizen.omadsagent", NULL, &error);
if (error) {
diff --git a/plugin/sms_plugin/SmsPluginMain.cpp b/plugin/sms_plugin/SmsPluginMain.cpp
index 5b09f72..2359aae 100755
--- a/plugin/sms_plugin/SmsPluginMain.cpp
+++ b/plugin/sms_plugin/SmsPluginMain.cpp
@@ -496,10 +496,10 @@ void MsgResourceMonitorInit(void)
gdbus_proxy = NULL;
}
- gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+ gdbus_proxy = g_dbus_proxy_new_sync(gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, BUS_NAME, PATH_NAME, INTERFACE_NAME, NULL, &error);
if (error) {
- MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+ MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
g_error_free(error);
error = NULL;
goto _DBUS_ERROR;
diff --git a/plugin/sms_plugin/SmsPluginWapPushHandler.cpp b/plugin/sms_plugin/SmsPluginWapPushHandler.cpp
index 22b9aee..2be2099 100755
--- a/plugin/sms_plugin/SmsPluginWapPushHandler.cpp
+++ b/plugin/sms_plugin/SmsPluginWapPushHandler.cpp
@@ -1098,7 +1098,7 @@ static void launchProcessByAppcode(int appcode)
goto _DBUS_ERROR;
}
- dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE,
+ dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, "org.tizen.omadmagent", "/org/tizen/omadmagent",
"org.tizen.omadmagent", NULL, &error);
if (error) {
@@ -1118,7 +1118,7 @@ static void launchProcessByAppcode(int appcode)
goto _DBUS_ERROR;
}
- dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ dbus_proxy_service = g_dbus_proxy_new_sync(connection_service, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
"org.tizen.omadmservice", "/org/tizen/omadmservice",
"org.tizen.omadmservice", NULL, &error);
if (error) {
@@ -1149,7 +1149,7 @@ static void launchProcessByAppcode(int appcode)
goto _DBUS_ERROR;
}
- dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ dbus_proxy_agent = g_dbus_proxy_new_sync(connection_agent, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
"org.tizen.omadsagent", "/org/tizen/omadsagent",
"org.tizen.omadsagent", NULL, &error);
if (error) {
diff --git a/utils/MsgCallStatusManager.cpp b/utils/MsgCallStatusManager.cpp
index 27f3475..6a44693 100644
--- a/utils/MsgCallStatusManager.cpp
+++ b/utils/MsgCallStatusManager.cpp
@@ -64,10 +64,10 @@ void MsgInitCallStatusManager()
call_status_gdbus_proxy = NULL;
}
- call_status_gdbus_proxy = g_dbus_proxy_new_sync(call_status_gdbus_conn, G_DBUS_PROXY_FLAGS_NONE,
+ call_status_gdbus_proxy = g_dbus_proxy_new_sync(call_status_gdbus_conn, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
NULL, CALL_MGR_BUS_NAME, CALL_MGR_PATH_NAME, CALL_MGR_INTERFACE_NAME, NULL, &error);
if (error) {
- MSG_FATAL("g_dbus_proxy_new_sync() failed : %s", error->message);
+ MSG_FATAL("G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES() failed : %s", error->message);
g_error_free(error);
error = NULL;
goto _DBUS_ERROR;
diff --git a/utils/MsgUtilFunction.cpp b/utils/MsgUtilFunction.cpp
index 0883576..9666cc1 100755
--- a/utils/MsgUtilFunction.cpp
+++ b/utils/MsgUtilFunction.cpp
@@ -1373,7 +1373,7 @@ void msg_syspopup_message(bool is_sending)
goto _DBUS_ERROR;
}
- dbus_proxy = g_dbus_proxy_new_sync(connection, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ dbus_proxy = g_dbus_proxy_new_sync(connection, G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, NULL,
SYSPOPUP_BUS_NAME, SYSPOPUP_OBJECT_PATH, SYSPOPUP_INTERFACE, NULL, &error);
if (error) {
MSG_ERR("Connecting to proxy failed: %s\n", error->message);