mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): add torbrowser-updater.
This commit is contained in:
parent
eeb990a934
commit
c84b48b0b4
28
apparmor.d/groups/whonix/torbrowser-updater
Normal file
28
apparmor.d/groups/whonix/torbrowser-updater
Normal 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>
|
||||
}
|
Loading…
Reference in New Issue
Block a user