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

abi <abi/3.0>,

include <tunables/global>

@{exec_path}  = @{lib}/drkonqi-coredump-processor
@{exec_path} += @{lib}/@{multiarch}/{,libexec/}drkonqi-coredump-processor
profile drkonqi-coredump-processor @{exec_path} {
  include <abstractions/base>
  include <abstractions/qt5>

  @{exec_path} mr,

  /etc/machine-id r,

  /usr/share/icu/@{int}.@{int}/*.dat r,

  /{run,var}/log/journal/ r,
  /{run,var}/log/journal/@{hex32}/ r,
  /{run,var}/log/journal/@{hex32}/*@{hex}.journal* r,

  include if exists <local/drkonqi-coredump-processor>
}