mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
|
# vim:syntax=apparmor
|
||
|
# ------------------------------------------------------------------
|
||
|
#
|
||
|
# Copyright (C) 2021 Mikhail Morfikov
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of version 2 of the GNU General Public
|
||
|
# License published by the Free Software Foundation.
|
||
|
#
|
||
|
# ------------------------------------------------------------------
|
||
|
|
||
|
abi <abi/3.0>,
|
||
|
|
||
|
include <tunables/global>
|
||
|
|
||
|
@{exec_path} = /{usr/,}bin/dino-im
|
||
|
profile dino-im @{exec_path} {
|
||
|
include <abstractions/base>
|
||
|
include <abstractions/gtk>
|
||
|
include <abstractions/fonts>
|
||
|
include <abstractions/fontconfig-cache-read>
|
||
|
include <abstractions/freedesktop.org>
|
||
|
include <abstractions/nameservice-strict>
|
||
|
include <abstractions/ssl_certs>
|
||
|
|
||
|
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 <abstractions/dconf>
|
||
|
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 <abstractions/base>
|
||
|
|
||
|
/{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 <local/dino-im>
|
||
|
}
|