]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
AppArmor: give the tor profile a stable name.
authorintrigeri <intrigeri@boum.org>
Mon, 29 Jan 2018 08:01:12 +0000 (08:01 +0000)
committerintrigeri <intrigeri@boum.org>
Mon, 29 Jan 2018 08:24:13 +0000 (08:24 +0000)
This will allow us to handle upgrades more nicely in the future,
e.g. when the executable path changes. Besides, this makes the output of
aa-status and logs much easier to grasp.

Note to packagers: exactly as for the similar change applied to the Tor
Browser's Firefox profile, please consider recommending users to reboot their
system after the upgrade that applies this change.

apparmor/torbrowser.Tor.tor

index 109eaf5223bc258d2c5a0470b5ec7782d9251848..7106a75c3a20e67e98e6f8e7e0059a1fcfe9c0b4 100644 (file)
@@ -1,7 +1,9 @@
 #include <tunables/global>
 #include <tunables/torbrowser>
 
-/home/*/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Tor/tor {
+@{torbrowser_tor_executable} = /home/*/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Tor/tor
+
+profile torbrowser_tor @{torbrowser_tor_executable} {
   #include <abstractions/base>
 
   network netlink raw,