commit a49c60a2f7a84972be4e31881182625dcc0b3ee4
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Sep 28 14:14:43 2011 +0200
iwhd: use /var/cache/iwhd for tiny temporary files, not /tmp
* iwhd.init.in (TMPDIR): Set it to /var/cache/iwhd, overriding the
default of /tmp. Francesco Vollero reported the SELinux issue.
iwhd.init.in | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/iwhd.init.in b/iwhd.init.in
index 9a7d9b6..b2d2f9d 100644
--- a/iwhd.init.in
+++ b/iwhd.init.in
@@ -31,6 +31,11 @@ MONGOD_SERVER_SPEC=localhost:27017
# How many seconds to wait for mongod to become usable before giving up.
MONGOD_N_SECONDS=2
+# Tell iwhd to use /var/cache/iwhd, not /tmp for a small S3-related
+# temporary file. This avoids conflict with SELinux policy that discourages
+# writing in /tmp.
+export TMPDIR=@localstatedir@/cache/iwhd
+
IWHD_ARGS="-d $MONGOD_SERVER_SPEC -l /var/log/iwhd.log"
test -r @sysconfdir@/sysconfig/iwhd && . @sysconfdir@/sysconfig/iwhd
Show replies by date