feat(profile): add torbrowser-updater.

This commit is contained in:
Alexandre Pujol 2024-05-06 23:53:17 +01:00
parent eeb990a934
commit c84b48b0b4
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,28 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{lib_dirs} = @{HOME}/.tb/tor-browser/Browser/
@{exec_path} = @{lib_dirs}/updater
profile torbrowser-updater @{exec_path} {
include <abstractions/base>
include <abstractions/desktop>
@{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 <local/torbrowser-updater>
}