From 8eabcca235098889a69dea7cd7d9a27adff44ca6 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Fri, 25 Aug 2017 14:49:49 +0300 Subject: [PATCH] Move /tmp/* to /run/swap/* 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 --- helper/dastdout.c | 2 +- helper/libdaprobe.c | 2 +- helper/lsan_open.c | 2 +- include/binproto.h | 2 +- lsan/src/lsan.cc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helper/dastdout.c b/helper/dastdout.c index 7b2568e..020edee 100644 --- a/helper/dastdout.c +++ b/helper/dastdout.c @@ -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 diff --git a/helper/libdaprobe.c b/helper/libdaprobe.c index f13b95f..cf62edd 100755 --- a/helper/libdaprobe.c +++ b/helper/libdaprobe.c @@ -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; diff --git a/helper/lsan_open.c b/helper/lsan_open.c index 20995c1..c79ebb4 100644 --- a/helper/lsan_open.c +++ b/helper/lsan_open.c @@ -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()); diff --git a/include/binproto.h b/include/binproto.h index fb155ee..d9a4313 100644 --- a/include/binproto.h +++ b/include/binproto.h @@ -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) diff --git a/lsan/src/lsan.cc b/lsan/src/lsan.cc index 1838e00..16d4133 100644 --- a/lsan/src/lsan.cc +++ b/lsan/src/lsan.cc @@ -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); -- 2.7.4