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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/ubuntu-report
profile ubuntu-report @{exec_path} {
  include <abstractions/base>
  include <abstractions/nameservice-strict>
  include <abstractions/ssl_certs>

  network inet stream,
  network inet6 stream,
  network inet dgram,
  network inet6 dgram,

  @{exec_path} mr,

  @{bin}/dpkg  rPx -> child-dpkg,

  owner @{user_cache_dirs}/ubuntu-report/{,*} r,

  include if exists <local/ubuntu-report>
}

# vim:syntax=apparmor
