Add gnome-photos-thumbnailer.

This commit is contained in:
Alexandre Pujol 2022-03-06 13:57:08 +00:00
parent f9fde0b482
commit 3fd489a442
Failed to generate hash of commit
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gnome-photos-thumbnailer
profile gnome-photos-thumbnailer @{exec_path} {
include <abstractions/base>
include <abstractions/user-download-strict>
@{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 <local/gnome-photos-thumbnailer>
}

View file

@ -44,6 +44,7 @@ gnome-disk-image-mounter complain
gnome-disks complain gnome-disks complain
gnome-keyring-daemon complain gnome-keyring-daemon complain
gnome-music complain gnome-music complain
gnome-photos-thumbnailer complain
gnome-shell attach_disconnected,complain gnome-shell attach_disconnected,complain
gnome-shell-hotplug-sniffer complain gnome-shell-hotplug-sniffer complain
gnome-system-monitor attach_disconnected,complain gnome-system-monitor attach_disconnected,complain