From 0bf60c313f6d4a1fdc94342e4da547defbde71d2 Mon Sep 17 00:00:00 2001 From: curiosityseeker <60518106+curiosityseeker@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:37:48 +0200 Subject: [PATCH] New profile: protonmail --- apparmor.d/profiles-m-r/protonmail | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 apparmor.d/profiles-m-r/protonmail diff --git a/apparmor.d/profiles-m-r/protonmail b/apparmor.d/profiles-m-r/protonmail new file mode 100644 index 00000000..2c69d8c0 --- /dev/null +++ b/apparmor.d/profiles-m-r/protonmail @@ -0,0 +1,45 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 curiosityseeker +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{name} = "Proton Mail" +@{lib_dirs} = /opt/@{name} +@{config_dirs} = @{user_config_dirs}/@{name} +@{cache_dirs} = @{user_cache_dirs}/@{name} + +@{exec_path} = "/opt/proton-mail/Proton Mail{, Beta}" +profile protonmail @{exec_path} flags=(complain) { + include + include + + network inet stream, + network inet dgram, + network inet6 dgram, + network netlink raw, + + ptrace read peer=xdg-settings, + + @{exec_path} mrix, + + /opt/proton-mail/** r, + /opt/proton-mail/*.so m, + /opt/proton-mail/libvulkan.so.1 m, + + @{bin}/xdg-settings Px, + @{open_path} rpx -> child-open, + + /etc/machine-id r, + + owner @{user_config_dirs}/ibus/bus/ r, + + @{sys}/devices/@{pci}/boot_vga r, + + owner @{tmp}/gtkprint_ppd_@{rand6} rw, + + include if exists + +}