diff --git a/apparmor.d/profiles-s-z/xdg-desktop-portal-gnome b/apparmor.d/profiles-s-z/xdg-desktop-portal-gnome new file mode 100644 index 00000000..1c9e8338 --- /dev/null +++ b/apparmor.d/profiles-s-z/xdg-desktop-portal-gnome @@ -0,0 +1,27 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/xdg-desktop-portal-gnome +profile xdg-desktop-portal-gnome @{exec_path} { + include + include + include + include + + @{exec_path} mr, + + /usr/share/glib-2.0/schemas/gschemas.compiled r, + /usr/share/X11/xkb/{,**} r, + + owner @{run}/user/@{uid}/wayland-cursor-shared-* rw, + + include + owner @{run}/user/@{uid}/dconf/user rw, + + include if exists +} \ No newline at end of file