feat(profile): add gnome-desktop-thumbnailers.

This commit is contained in:
Alexandre Pujol 2024-03-04 12:54:39 +00:00
parent 0533e03756
commit f1b01d03cd
Failed to generate hash of commit
2 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,30 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
profile gnome-desktop-thumbnailers flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bwrap>
include <abstractions/gnome-strict>
include <abstractions/gstreamer>
capability dac_override,
@{bin}/bwrap mr,
@{bin}/*-thumbnailer rix,
/usr/share/poppler/{,**} r,
owner @{user_cache_dirs}/gnome-desktop-thumbnailer/{,**} rw,
owner /tmp/flatpak-seccomp-@{rand6} rw,
owner /tmp/gnome-desktop-file-to-thumbnail.* r,
owner /tmp/gnome-desktop-thumbnailer.png w,
owner /tmp/gsf-thumbnailer-@{rand6} rw,
include if exists <local/gnome-desktop-thumbnailers>
}

View file

@ -76,7 +76,7 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
@{sh_path} rix,
@{bin}/bwrap rPUx,
@{bin}/bwrap rPx -> gnome-desktop-thumbnailers,
@{bin}/file-roller rPx,
@{bin}/firejail rPUx,
@{bin}/net rPUx,