# 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}/glib-pacrunner
profile glib-pacrunner @{exec_path} {
  include <abstractions/base>
  include <abstractions/bus-system>
  include <abstractions/bus-session>
  include <abstractions/nameservice-strict>

  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network netlink raw,

  #aa:dbus own bus=session name=org.gtk.GLib.PACRunner

  @{exec_path} mr,

  @{PROC}/cmdline r,
  @{PROC}/sys/kernel/osrelease r,

  include if exists <local/glib-pacrunner>
}

# vim:syntax=apparmor
