Add gnome-calendar and gnome-contacts.

This commit is contained in:
Alexandre Pujol 2021-04-02 00:06:05 +01:00
parent 9b19b979d6
commit f52668628d
Failed to generate hash of commit
2 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-3.0-or-later
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/gnome-calendar
profile gnome-calendar @{exec_path} {
include <abstractions/base>
include <abstractions/fonts>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/openssl>
include <abstractions/fonts>
include <abstractions/gtk>
network netlink raw,
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
/usr/share/icons/{,**} r,
/usr/share/X11/xkb/{,**} r,
owner @{user_share_dirs}/recently-used.xbel r,
owner @{user_config_dirs}/user-dirs.dirs r,
include <abstractions/dconf>
owner @{run}/user/[0-9]*/dconf/ rw,
owner @{run}/user/[0-9]*/dconf/user rw,
/run/user/1000/gdm/Xauthority r,
include if exists <local/gnome-calendar>
}

View file

@ -0,0 +1,30 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-3.0-or-later
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/gnome-contacts
profile gnome-contacts @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/gtk>
network netlink raw,
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
owner @{user_share_dirs}/folks/relationships.ini r,
/dev/dri/ r,
include <abstractions/dconf>
owner @{run}/user/[0-9]*/dconf/ rw,
owner @{run}/user/[0-9]*/dconf/user rw,
include if exists <local/gnome-contacts>
}