[Pkg-privacy-commits] [torbrowser-launcher] 09/59: AppArmor: remove lots of permissions the plugin-container process doesn't need.
Roger Shimizu
rogershimizu at gmail.com
Mon Jan 29 13:43:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
rosh pushed a commit to branch debian/sid
in repository torbrowser-launcher.
commit 6f6c8f995a6638b855bd2ddc9d6a04e79b24c2c0
Author: intrigeri <intrigeri at boum.org>
Date: Fri Jun 16 17:33:33 2017 +0000
AppArmor: remove lots of permissions the plugin-container process doesn't need.
---
apparmor/torbrowser.Browser.plugin-container | 55 ----------------------------
1 file changed, 55 deletions(-)
diff --git a/apparmor/torbrowser.Browser.plugin-container b/apparmor/torbrowser.Browser.plugin-container
index fd528bb..a8a32b2 100644
--- a/apparmor/torbrowser.Browser.plugin-container
+++ b/apparmor/torbrowser.Browser.plugin-container
@@ -3,19 +3,6 @@
profile torbrowser_plugin_container {
#include <abstractions/gnome>
- # Uncomment the following line if you don't want the Tor Browser
- # to have direct access to your sound hardware. Note that this is not
- # enough to have working sound support in Tor Browser.
- # #include <abstractions/audio>
-
- # Uncomment the following lines if you want to give the Tor Browser read-write
- # access to most of your personal files.
- # #include <abstractions/user-download>
- # @{HOME}/ r,
-
- #dbus,
- network tcp,
-
deny /etc/host.conf r,
deny /etc/hosts r,
deny /etc/nsswitch.conf r,
@@ -33,46 +20,11 @@ profile torbrowser_plugin_container {
owner @{PROC}/@{pid}/task/*/stat r,
@{PROC}/sys/kernel/random/uuid r,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/ r,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/* r,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/.** rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/update.test/ rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/.** rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/ rw,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/** rw,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser.bak/ rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser.bak/** rwk,
owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/*.so mr,
owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/components/*.so mr,
owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/browser/components/*.so mr,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/firefox rix,
owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/plugin-container ixmr,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/{,TorBrowser/UpdateInfo/}updates/[0-9]*/updater ix,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/{,TorBrowser/UpdateInfo/}updates/0/MozUpdater/bgupdate/updater ix,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Data/Browser/profiles.ini r,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Data/Browser/profile.default/ r,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Data/Browser/profile.default/** rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Tor/tor px,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/TorBrowser/Tor/libstdc++.so.6 m,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/Desktop/ rw,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/Desktop/** rwk,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/Downloads/ rw,
- owner @{HOME}/.local/share/torbrowser/tbb/{i686,x86_64}/tor-browser_*/Browser/Downloads/** rwk,
-
- /etc/mailcap r,
- /etc/mime.types r,
- /usr/share/ r,
- /usr/share/mime/ r,
- /usr/share/themes/ r,
- /usr/share/applications/** rk,
- /usr/share/gnome/applications/ r,
- /usr/share/gnome/applications/kde4/ r,
- /usr/share/poppler/cMap/ r,
-
- # Distribution homepage
- /usr/share/homepage/ r,
- /usr/share/homepage/** r,
/sys/devices/system/cpu/ r,
/sys/devices/system/cpu/present r,
@@ -99,12 +51,5 @@ profile torbrowser_plugin_container {
deny /sys/devices/system/cpu/cpufreq/policy[0-9]*/cpuinfo_max_freq r,
deny /sys/devices/system/cpu/*/cache/index[0-9]*/size r,
- # KDE 4
- owner @{HOME}/.kde/share/config/* r,
-
- # Xfce4
- /etc/xfce4/defaults.list r,
- /usr/share/xfce4/applications/ r,
-
#include <local/torbrowser.Browser.plugin-container>
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list