summaryrefslogtreecommitdiffstats
path: root/lib/Plugins
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-30 14:41:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-30 14:41:34 +0100
commit174bd9604471cc5b5ef940457b11fe0adcc39739 (patch)
treece20d1aaa837e254698e87973c02a3dd7b6ffc48 /lib/Plugins
parentd75aa2102c7f6183c4db1d1dabfb0a972489dfdb (diff)
downloadabrt-174bd9604471cc5b5ef940457b11fe0adcc39739.tar.gz
abrt-174bd9604471cc5b5ef940457b11fe0adcc39739.tar.xz
abrt-174bd9604471cc5b5ef940457b11fe0adcc39739.zip
lib/Plugins/CCpp: use /var/run instead of /tmp for tempdir
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins')
-rw-r--r--lib/Plugins/CCpp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 4eacdd20..23bd9db0 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -671,7 +671,8 @@ static void InstallDebugInfos(const std::string& pDebugDumpDir, std::string& bui
setsid();
char *coredump = xasprintf("%s/"FILENAME_COREDUMP, pDebugDumpDir.c_str());
- char *tempdir = xasprintf("/tmp/abrt-%u-%lu", (int)getpid(), (long)time(NULL));
+ /* SELinux guys are not happy with /tmp, using /var/run/abrt */
+ char *tempdir = xasprintf(LOCALSTATEDIR"/run/abrt/tmp-%u-%lu", (int)getpid(), (long)time(NULL));
/* log() goes to stderr/syslog, it's ok to use it here */
VERB1 log("Executing: %s %s %s %s", "abrt-debuginfo-install", coredump, tempdir, LOCALSTATEDIR"/cache/abrt-di");
execlp("abrt-debuginfo-install", "abrt-debuginfo-install", coredump, tempdir, LOCALSTATEDIR"/cache/abrt-di", NULL);