[tbb-commits] [tor-browser-build/master] Bug 21779: Non-admin users can't access Tor Browser on macOS.

boklm at torproject.org boklm at torproject.org
Fri May 12 11:50:52 UTC 2017


commit dd6349a4c118d05797eb211d538ac36b6d08bb59
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri May 12 13:20:33 2017 +0200

    Bug 21779:  Non-admin users can't access Tor Browser on macOS.
    
    Use chmod to grant permission for "other" to access files within
    TorBrowser.app.
    
    tor-browser-bundle.git author: Kathy Brade <brade at pearlcrescent.com>
    tor-browser-bundle.git commit: f27d2cab4ed80a4c7b4f594b593b6b90f6148a82
---
 projects/tor-browser/build | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/projects/tor-browser/build b/projects/tor-browser/build
index 69469db..d580284 100644
--- a/projects/tor-browser/build
+++ b/projects/tor-browser/build
@@ -229,6 +229,12 @@ rm -f precomplete
 python $MARTOOLS/createprecomplete.py
 popd
 
+[% IF c("var/osx") -%]
+  # Ensure that files and directories are accessible by non-admin users
+  # if the app bundle is placed in /Applications. See bug 21779.
+  chmod -R o+rX "$TBDIR"
+[% END -%]
+
 cd $distdir
 
 [% IF c("var/build_mar") -%]
@@ -301,6 +307,12 @@ rm -rf $distdir/${PKG_DIR}
       python $MARTOOLS/createprecomplete.py
       popd
 
+      [% IF c("var/osx") -%]
+        # Ensure that files and directories are accessible by non-admin users
+        # if the app bundle is placed in /Applications. See bug 21779.
+        chmod -R o+rX "[% browserdir %]"
+      [% END -%]
+
       # Create full MAR file and compressed package for this locale.
       MAR_FILE=tor-browser-[% c("var/mar_osname") %]-[% c("var/torbrowser_version") %]_[% lang %].mar
       MAR=$MARTOOLS/mar MBSDIFF=$MARTOOLS/mbsdiff $MARTOOLS/make_full_update.sh -q $OUTDIR/$MAR_FILE "[% browserdir %]"





More information about the tbb-commits mailing list