Add downloadhelper profile.

This commit is contained in:
Alexandre Pujol 2022-02-22 20:55:27 +00:00
parent 8b803a6285
commit 477d3f28a0
Failed to generate hash of commit
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /opt/net.downloadhelper.coapp/bin/net.downloadhelper.coapp-*
profile downloadhelper @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/openssl>
include <abstractions/user-download-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
/opt/ r,
/opt/net.downloadhelper.coapp/ r,
/opt/net.downloadhelper.coapp/bin/ r,
/opt/net.downloadhelper.coapp/converter/build/** rix,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/.parentlock rw,
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/extensions/* r,
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/scriptCache-*.bin r,
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/startupCache.*.little r,
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/safebrowsing-updating/google[0-9]/goog-phish-proto-[0-9]*.vlpset rw,
owner /tmp/vdh-*.tmp rw,
@{sys}/devices/system/node/ r,
@{sys}/devices/system/node/node[0-9]*/meminfo r,
deny @{PROC}/version r,
include if exists <local/downloadhelper>
}

View file

@ -31,6 +31,7 @@ dbus-run-session complain
dconf complain
dkms attach_disconnected,complain
dmesg complain
downloadhelper complain
e2fsck complain
e2image complain
evince complain