# 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}/msgcollector/msgdispatcher_xdg_autostart
profile msgdispatcher-autostart @{exec_path} {
  include <abstractions/base>

  @{exec_path} mr,

  @{sh_path} r,

  @{lib}/msgcollector/msgdispatcher rPx,

  owner @{HOME}/.xsession-errors w,

  /dev/tty rw,

  include if exists <local/msgdispatcher-autostart>
}

# vim:syntax=apparmor
