[tbb-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 17560: prevent disk leaks in $HOME/.local/share.
ma1 (@ma1)
git at gitlab.torproject.org
Wed Nov 29 22:54:10 UTC 2023
ma1 pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build
Commits:
eb925334 by hackademix at 2023-11-29T23:53:35+01:00
Bug 17560: prevent disk leaks in $HOME/.local/share.
- - - - -
2 changed files:
- projects/browser/RelativeLink/start-browser
- projects/browser/gtk3-settings.ini
Changes:
=====================================
projects/browser/RelativeLink/start-browser
=====================================
@@ -257,6 +257,20 @@ fi
HOME="${PWD}"
export HOME
+# Prevent disk leaks in $HOME/.local/share (tor-browser#17560)
+local_dir="$HOME/.local/"
+share_dir="$local_dir/share"
+if [ -d "$share_dir" ]; then
+ ( srm -r "$share_dir" ||
+ wipe -r "$share_dir" ||
+ find "$share_dir" -type f -exec shred -u {} \; ;
+ rm -rf "$share_dir"
+ ) > /dev/null 2>&1
+else
+ mkdir -p "$local_dir"
+fi
+ln -fs /dev/null "$share_dir"
+
[% IF c("var/tor-browser") -%]
SYSARCHITECTURE=$(getconf LONG_BIT)
TORARCHITECTURE=$(expr "$(file TorBrowser/Tor/tor)" : '.*ELF \([[:digit:]]*\)')
=====================================
projects/browser/gtk3-settings.ini
=====================================
@@ -1,2 +1,4 @@
[Settings]
gtk-primary-button-warps-slider = false
+gtk-recent-files-max-age=0
+gtk-recent-files-limit=0
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/eb9253345ef4d18dbd2edec19b4abd331a443fb2
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/eb9253345ef4d18dbd2edec19b4abd331a443fb2
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20231129/fa4fc2b7/attachment-0001.htm>
More information about the tbb-commits
mailing list