# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

  abi <abi/4.0>,

  include <abstractions/fonts>
  include <abstractions/freedesktop.org>
  include <abstractions/gtk>
  include <abstractions/wayland>
  include <abstractions/X-strict>
  include <abstractions/xdg-desktop>

  dbus receive bus=session
       interface=org.freedesktop.DBus.Introspectable
       member=Introspect
       peer=(name=:*, label=gnome-shell),

  /usr/share/desktop-base/{,**} r,
  /usr/share/hwdata/*.ids r,
  /usr/share/icu/@{int}.@{int}/*.dat r,

  /usr/{local/,}share/ r,
  /usr/{local/,}share/glib-@{int}.@{int}/schemas/** r,
  /usr/{local/,}share/gvfs/remote-volume-monitors/{,*}  r,

  /etc/gnome/* r,
  /etc/xdg/{,*-}mimeapps.list r,

  /var/cache/gio-@{int}.@{int}/gnome-mimeapps.list r,

  / r,

  owner @{user_share_dirs}/gnome-shell/session.gvdb rw,

  include if exists <abstractions/gnome-strict.d>

# vim:syntax=apparmor
