mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-24 19:05:40 +01:00
feat(profile): add gimp.
This commit is contained in:
parent
ddd0388d7d
commit
0f4c37c39a
2 changed files with 55 additions and 0 deletions
54
apparmor.d/profiles-g-l/gimp
Normal file
54
apparmor.d/profiles-g-l/gimp
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
# 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>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/gimp{,-*}
|
||||||
|
profile gimp @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/bus-session>
|
||||||
|
include <abstractions/bus/org.freedesktop.FileManager1>
|
||||||
|
include <abstractions/desktop>
|
||||||
|
include <abstractions/graphics>
|
||||||
|
include <abstractions/user-download-strict>
|
||||||
|
|
||||||
|
#aa:dbus talk bus=session name=org.gnome.Shell.Screenshot label=gnome-shell
|
||||||
|
#aa:dbus talk bus=session name=org.gtk.vfs label="gvfsd{,-*}"
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{lib}/gimp/*/plug-ins/** rix,
|
||||||
|
|
||||||
|
@{open_path} rPx -> child-open-help,
|
||||||
|
|
||||||
|
/usr/share/gimp/{,**} r,
|
||||||
|
/usr/share/mypaint-data/{,**} r,
|
||||||
|
/usr/share/xml/iso-codes/{,**} r,
|
||||||
|
|
||||||
|
/etc/gimp/{,**} r,
|
||||||
|
|
||||||
|
owner @{user_documents_dirs}/{,**} rw,
|
||||||
|
owner @{user_pictures_dirs}/{,**} rw,
|
||||||
|
owner @{user_work_dirs}/{,**} rw,
|
||||||
|
|
||||||
|
owner @{user_cache_dirs}/babl/{,**} rw,
|
||||||
|
owner @{user_cache_dirs}/gegl-*/{,**} r,
|
||||||
|
owner @{user_cache_dirs}/gegl-*/{,**} r,
|
||||||
|
owner @{user_cache_dirs}/gimp/{,**} rw,
|
||||||
|
owner @{user_cache_dirs}/GIMP/{,**} rw,
|
||||||
|
|
||||||
|
owner @{user_config_dirs}/gimp/{,**} rw,
|
||||||
|
owner @{user_config_dirs}/GIMP/{,**} rw,
|
||||||
|
|
||||||
|
owner @{user_share_dirs}/gegl-*/{,**} r,
|
||||||
|
owner @{user_share_dirs}/GIMP/{,**} rw,
|
||||||
|
|
||||||
|
owner @{tmp}/gimp/{,**} rw,
|
||||||
|
|
||||||
|
include if exists <local/gimp>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
|
@ -134,6 +134,7 @@ gdm-generate-config complain
|
||||||
gdm-runtime-config complain
|
gdm-runtime-config complain
|
||||||
gdm-session attach_disconnected,complain
|
gdm-session attach_disconnected,complain
|
||||||
gdm-xsession complain
|
gdm-xsession complain
|
||||||
|
gimp complain
|
||||||
gmenudbusmenuproxy complain
|
gmenudbusmenuproxy complain
|
||||||
gnome-boxes complain
|
gnome-boxes complain
|
||||||
gnome-browser-connector-host complain
|
gnome-browser-connector-host complain
|
||||||
|
|
Loading…
Add table
Reference in a new issue