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

abi <abi/4.0>,

include <tunables/global>

@{exec_path}  = @{lib}/@{multiarch}/{,libexec/}polkit-gnome-authentication-agent-1
@{exec_path} += @{lib}/policykit-1-gnome/polkit-gnome-authentication-agent-1
@{exec_path} += @{lib}/polkit-gnome-authentication-agent-1
@{exec_path} += @{lib}/polkit-gnome/polkit-gnome-authentication-agent-1
profile polkit-gnome-authentication-agent @{exec_path} {
  include <abstractions/base>
  include <abstractions/dconf-write>
  include <abstractions/gnome-strict>

  @{exec_path} mr,

  @{PROC}/@{pid}/cgroup r,

  include if exists <local/polkit-gnome-authentication-agent>
}

# vim:syntax=apparmor
