# 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/3.0>,

include <tunables/global>

@{exec_path} = @{lib}/goa-identity-service
profile goa-identity-service @{exec_path} {
  include <abstractions/base>
  include <abstractions/authentication>
  include <abstractions/bus-session>
  include <abstractions/bus/org.gtk.vfs.MountTracker>

  #aa:dbus own bus=session name=org.gnome.Identity

  dbus send bus=session path=/org/gnome/OnlineAccounts
       interface=org.freedesktop.DBus.ObjectManager
       member=GetManagedObjects
       peer=(name=:*, label=goa-daemon),

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

  @{exec_path} mr,

  include if exists <local/goa-identity-service>
}

# vim:syntax=apparmor
