mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add gnome-desktop-thumbnailers.
This commit is contained in:
parent
0533e03756
commit
f1b01d03cd
2 changed files with 31 additions and 1 deletions
30
apparmor.d/groups/gnome/gnome-desktop-thumbnailers
Normal file
30
apparmor.d/groups/gnome/gnome-desktop-thumbnailers
Normal 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>
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue