# apparmor.d - Full set of apparmor profiles # Copyright (C) 2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/dino-im profile dino-im @{exec_path} { include include include include include include include network inet dgram, network inet6 dgram, network inet stream, network inet6 stream, network netlink raw, @{exec_path} mr, # Needed for GPG/PGP support /{usr/,}bin/gpg rCx -> gpg, /{usr/,}bin/gpgconf rCx -> gpg, /{usr/,}bin/gpgsm rCx -> gpg, include owner @{run}/user/[0-9]*/dconf/ w, owner @{run}/user/[0-9]*/dconf/user rw, owner @{HOME}/.local/share/dino/ rw, owner @{HOME}/.local/share/dino/** rwk, /usr/share/glib-2.0/schemas/gschemas.compiled r, owner @{PROC}/@{pid}/fd/ r, profile gpg { include /{usr/,}bin/gpg mr, /{usr/,}bin/gpgconf mr, /{usr/,}bin/gpgsm mr, owner @{HOME}/.gnupg/ rw, owner @{HOME}/.gnupg/** rwkl -> @{HOME}/.gnupg/**, } include if exists }