From 3fd489a4421dc0132e57adf02b14e919036fa1b7 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 6 Mar 2022 13:57:08 +0000 Subject: [PATCH] Add gnome-photos-thumbnailer. --- .../groups/gnome/gnome-photos-thumbnailer | 29 +++++++++++++++++++ dists/flags/main.flags | 1 + 2 files changed, 30 insertions(+) create mode 100644 apparmor.d/groups/gnome/gnome-photos-thumbnailer diff --git a/apparmor.d/groups/gnome/gnome-photos-thumbnailer b/apparmor.d/groups/gnome/gnome-photos-thumbnailer new file mode 100644 index 00000000..c58fc245 --- /dev/null +++ b/apparmor.d/groups/gnome/gnome-photos-thumbnailer @@ -0,0 +1,29 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/gnome-photos-thumbnailer +profile gnome-photos-thumbnailer @{exec_path} { + include + include + + @{exec_path} mr, + + /usr/share/mime/mime.cache r, + + owner @{HOME}/@{XDG_PICTURES_DIR}/{,**} r, + owner @{MOUNTS}/*/@{XDG_PICTURES_DIR}/{,**} r, + + owner @{user_cache_dirs}/babl/{,**} r, + owner @{user_cache_dirs}/gegl-*/{,**} r, + owner @{user_cache_dirs}/gnome-photos/thumbnails/{,**} rw, + owner @{user_share_dirs}/gegl-*/{,**} r, + + owner /dev/shm/DzlCounters-[0-9]* rw, + + include if exists +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index 7c7ae809..df735955 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -44,6 +44,7 @@ gnome-disk-image-mounter complain gnome-disks complain gnome-keyring-daemon complain gnome-music complain +gnome-photos-thumbnailer complain gnome-shell attach_disconnected,complain gnome-shell-hotplug-sniffer complain gnome-system-monitor attach_disconnected,complain