mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add downloadhelper profile.
This commit is contained in:
parent
8b803a6285
commit
477d3f28a0
2 changed files with 44 additions and 0 deletions
43
apparmor.d/profiles-a-f/downloadhelper
Normal file
43
apparmor.d/profiles-a-f/downloadhelper
Normal 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>
|
||||||
|
}
|
|
@ -31,6 +31,7 @@ dbus-run-session complain
|
||||||
dconf complain
|
dconf complain
|
||||||
dkms attach_disconnected,complain
|
dkms attach_disconnected,complain
|
||||||
dmesg complain
|
dmesg complain
|
||||||
|
downloadhelper complain
|
||||||
e2fsck complain
|
e2fsck complain
|
||||||
e2image complain
|
e2image complain
|
||||||
evince complain
|
evince complain
|
||||||
|
|
Loading…
Reference in a new issue