diff --git a/apparmor.d/groups/whonix/torbrowser-updater b/apparmor.d/groups/whonix/torbrowser-updater new file mode 100644 index 000000000..9db283822 --- /dev/null +++ b/apparmor.d/groups/whonix/torbrowser-updater @@ -0,0 +1,28 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{lib_dirs} = @{HOME}/.tb/tor-browser/Browser/ + +@{exec_path} = @{lib_dirs}/updater +profile torbrowser-updater @{exec_path} { + include + include + + @{exec_path} mr, + + @{lib_dirs}/*.so mr, + @{lib_dirs}/firefox{,.real} rPx, + + owner @{lib_dirs}/{,**} rw, + + owner @{tmp}/#@{int} rw, + + deny owner @{lib_dirs}/Downloads/** rw, + + include if exists +} \ No newline at end of file