2022-02-22 21:55:27 +01:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
2022-02-22 21:55:27 +01:00
|
|
|
# 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/user-download-strict>
|
|
|
|
|
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network netlink raw,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/ffmpeg rix,
|
2023-03-03 13:20:10 +01:00
|
|
|
|
2022-02-22 21:55:27 +01:00
|
|
|
/opt/ r,
|
|
|
|
/opt/net.downloadhelper.coapp/ r,
|
|
|
|
/opt/net.downloadhelper.coapp/bin/ r,
|
|
|
|
/opt/net.downloadhelper.coapp/converter/build/** rix,
|
|
|
|
|
2022-05-15 23:56:42 +02:00
|
|
|
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.*/.parentlock rw,
|
|
|
|
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.*/extensions/* r,
|
|
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.*/startupCache/scriptCache-*.bin r,
|
|
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.*/startupCache/startupCache.*.little r,
|
2024-02-26 22:10:53 +01:00
|
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.*/safebrowsing-updating/google@{int}/goog-phish-proto-@{int}.vlpset rw,
|
2022-02-22 21:55:27 +01:00
|
|
|
|
|
|
|
owner /tmp/vdh-*.tmp rw,
|
|
|
|
|
|
|
|
@{sys}/devices/system/node/ r,
|
2023-08-18 18:09:53 +02:00
|
|
|
@{sys}/devices/system/node/node@{int}/meminfo r,
|
2022-02-22 21:55:27 +01:00
|
|
|
|
|
|
|
deny @{PROC}/version r,
|
2022-02-27 13:18:10 +01:00
|
|
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
2022-02-22 21:55:27 +01:00
|
|
|
|
|
|
|
include if exists <local/downloadhelper>
|
|
|
|
}
|