diff --git a/apparmor.d/profiles-a-f/downloadhelper b/apparmor.d/profiles-a-f/downloadhelper new file mode 100644 index 00000000..3cbe7bc2 --- /dev/null +++ b/apparmor.d/profiles-a-f/downloadhelper @@ -0,0 +1,43 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /opt/net.downloadhelper.coapp/bin/net.downloadhelper.coapp-* +profile downloadhelper @{exec_path} { + include + include + include + include + + 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 +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index a5cbd729..5a7577de 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -31,6 +31,7 @@ dbus-run-session complain dconf complain dkms attach_disconnected,complain dmesg complain +downloadhelper complain e2fsck complain e2image complain evince complain