summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-07-11 20:32:03 +0000
committerintrigeri <intrigeri@boum.org>2015-07-11 21:39:57 +0000
commita1fd1f0f4df38465855e08db287b0410b47b4806 (patch)
treed29379aeca3b51d0bfced0e5688ce3caf079a91e
parent51c00606aa84b580124ea9082d5b1a84a25364fe (diff)
Give Tor Browser its own $TMPDIR, in its profile directory.
By default, it uses /tmp/, but we want to deny it access to there. Will-fix: #9558
-rwxr-xr-xconfig/chroot_local-includes/usr/local/bin/tor-browser4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/local/bin/tor-browser b/config/chroot_local-includes/usr/local/bin/tor-browser
index 80200a3..a6751fd 100755
--- a/config/chroot_local-includes/usr/local/bin/tor-browser
+++ b/config/chroot_local-includes/usr/local/bin/tor-browser
@@ -59,6 +59,10 @@ start_browser() {
/usr/local/bin/generate-tor-browser-profile
fi
+ TMPDIR="${PROFILE}/tmp"
+ mkdir --mode=0700 -p "$TMPDIR"
+ export TMPDIR
+
configure_best_tor_browser_locale "${PROFILE}"
# Workaround bug #8036