From 33fd86fa14be06548e0ebebf193e1ad551cbfa42 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 29 Jan 2018 08:01:12 +0000 Subject: [PATCH] AppArmor: give the tor profile a stable name. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apparmor/torbrowser.Tor.tor b/apparmor/torbrowser.Tor.tor index 109eaf5..7106a75 100644 --- a/apparmor/torbrowser.Tor.tor +++ b/apparmor/torbrowser.Tor.tor @@ -1,7 +1,9 @@ #include #include -/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 network netlink raw, -- 2.44.0