Move /tmp/* to /run/swap/* 78/146278/1 submit/tizen_3.0/20170901.085536
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 25 Aug 2017 11:49:49 +0000 (14:49 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 25 Aug 2017 14:23:29 +0000 (17:23 +0300)
Rename file:
/tmp/da.socket --> /run/swap/lib.socket

Other files only move:
/tmp/* --> /run/swap/tmp/*

Change-Id: Ib14754af2502dc77b47b0a465c906469dd9cb199
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
helper/dastdout.c
helper/libdaprobe.c
helper/lsan_open.c
include/binproto.h
lsan/src/lsan.cc

index 7b2568e967e1a08b8f8a36aabd950ad7da6ae8e7..020edee5afacd98d4aa79acbc0a069b8ecb29dbe 100644 (file)
@@ -54,7 +54,7 @@ int __redirect_std(void)
 {
 #ifdef STDTOFILE
        char STDOUT[MAX_PATH_LENGTH];
-       snprintf(STDOUT,sizeof(STDOUT), "/tmp/da_preloaded_%d_%d.log", getppid(), getpid());
+       snprintf(STDOUT,sizeof(STDOUT), "/run/swap/tmp/da_preloaded_%d_%d.log", getppid(), getpid());
 #else
        #define STDOUT          "/dev/null"
 #endif
index f13b95fe72cec706d3ded5edea570d4b687dd9be..cf62edd0024a7b5f726308e40961e8394f99402d 100755 (executable)
@@ -66,7 +66,7 @@
 #include "lsan_open.h"
 #include "got_patching.h"
 
-#define UDS_NAME "/tmp/da.socket"
+#define UDS_NAME "/run/swap/lib.socket"
 #define TIMERFD_INTERVAL 100000000      /* 0.1 sec */
 
 pid_t gPid = -1;
index 20995c161246a057924a7a0febce750a134973ed..c79ebb4897d471e67e6ac8f3292d430b63a8170f 100644 (file)
@@ -76,7 +76,7 @@ static void send_msg_to_host(const char *msg, lsan_status status)
 }
 
 static char *get_report_file_name() {
-       const char report_file_name_base[] = "/tmp/lsan.log";
+       const char report_file_name_base[] = "/run/swap/tmp/lsan.log";
        static char report_file_name[MAX_PATH_LENGTH];
        snprintf(report_file_name, MAX_PATH_LENGTH, "%s.%d",
                 report_file_name_base, _getpid());
index fb155eea87889ca5f5427968cd415f56966f0af4..d9a4313fde97c7d69605c8e2880f24b038728cfb 100644 (file)
@@ -63,7 +63,7 @@
 
 #define MSG_LSAN 0x0022
 
-#define SCREENSHOT_DIRECTORY   "/tmp/da"
+#define SCREENSHOT_DIRECTORY   "/run/swap/tmp/da"
 
 #define MAX_PACK_FILENAME_LEN (4 * 1024)
 #define MAX_SHADER_LEN (4 * 1024)
index 1838e00f91a7a8bfd09dc6eccab5f47ddaa4fa22..16d4133f17c77139de955811c12a3e8e9b3ee182 100644 (file)
@@ -88,7 +88,7 @@ static void InitializeFlags() {
   if (Verbosity()) ReportUnrecognizedFlags();
 
   if (common_flags()->help) parser.PrintFlagDescriptions();
-  __sanitizer_set_report_path("/tmp/lsan.log");
+  __sanitizer_set_report_path("/run/swap/tmp/lsan.log");
 
   if (getFlagsFromFile)
     UnmapOrDie(lsanFlags, len);