rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/tmp/datacontrol/request
-mkdir -p %{buildroot}/tmp/datacontrol/result
mkdir -p %{buildroot}/usr/share/license
install LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
#define OSP_V_LAUNCH_TYPE_DATACONTROL "datacontrol"
#define OSP_V_VERSION_2_1_0_3 "ver_2.1.0.3"
#define OSP_V_CALLER_TYPE_OSP "osp"
-
-#define DATACONTROL_REQUEST_FILE_PREFIX "/tmp/data-control/datacontrol.request."
-#define DATACONTROL_RESULT_FILE_PREFIX "/tmp/data-control/datacontrol.result."
+#define DATACONTROL_REQUEST_FILE_PREFIX "datacontrol.request."
#define MAX_REQUEST_ARGUMENT_SIZE 1048576 /* 1MB */
#define MAX_ROW_COUNT 1024
LOGI("req_id : %s", req_id);
LOGI("SELECT RESPONSE");
- size = snprintf(select_map_file, REQUEST_PATH_MAX, "%s%s%s", DATACONTROL_REQUEST_FILE_PREFIX,
+ size = snprintf(select_map_file, REQUEST_PATH_MAX, "/run/user/%d/%s%s%s", getuid(), DATACONTROL_REQUEST_FILE_PREFIX,
(char *)bundle_get_val(kb, AUL_K_CALLER_APPID), req_id);
if (size < 0) {
LOGE("unable to write formatted output to select_map_file. errno = %d", errno);