[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sandboxed-tor-browser/master] Fix some minor Gtk~ and openSUSE related sandbox issues.
commit bba5a5524bbb75ae9b0505e8413e576440436243
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
Date: Sat Nov 26 05:08:50 2016 +0000
Fix some minor Gtk~ and openSUSE related sandbox issues.
* Apparently the `hicolor`icons are needed for certain things on all
systems.
* openSUSE (Tumbleweed) is really stubborn about pulling in Gtk theme
stuff from /usr/lib64, so apply the same symlink treatment to the
restrictedLibDir.
---
src/cmd/sandboxed-tor-browser/internal/sandbox/application.go | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go b/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
index 9fcae45..e676955 100644
--- a/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
+++ b/src/cmd/sandboxed-tor-browser/internal/sandbox/application.go
@@ -73,6 +73,7 @@ func RunTorBrowser(cfg *config.Config, manif *config.Manifest, tor *tor.Tor) (cm
}
h.roBind("/usr/share/themes/Adwaita/gtk-2.0", "/usr/share/themes/Adwaita/gtk-2.0", false)
h.roBind("/usr/share/icons/Adwaita", "/usr/share/icons/Adwaita", false)
+ h.roBind("/usr/share/icons/hicolor", "/usr/share/icons/hicolor", true)
h.roBind("/usr/share/mime", "/usr/share/mime", false)
gtkRcPath := filepath.Join(h.homeDir, ".gtkrc-2.0")
h.setenv("GTK2_RC_FILES", gtkRcPath)
@@ -650,12 +651,17 @@ func (h *hugbox) appendLibraries(cache *dynlib.Cache, binaries []string, extraLi
}
}
- // This being at least symlinked to exactly the right spot matters.
+ // Some systems are really stubborn about searching for certain things
+ // in the qualified lib directories. In particular ld-linux.so needs to
+ // be in exactly the right place, and openSUSE seems to really want to
+ // use "/usr/lib64" for certain things.
switch runtime.GOARCH {
case "amd64":
h.symlink("/lib", "/lib64")
+ h.symlink(restrictedLibDir, "/usr/lib64")
case "386":
h.symlink("/lib", "/lib32")
+ h.symlink(restrictedLibDir, "/usr/lib32")
}
h.standardLibs = false
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits