# 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}/glib-compile-resources
@{att} = ""
profile glib-compile-resources /{,usr/}bin/glib-compile-resources flags=(complain) {
  include <abstractions/base-strict>

  @{exec_path} mr,

  @{bin}/xmllint rix,

  /tmp/resource-* rw,

  owner @{PROC}/@{pid}/fd/ r,

  include if exists <local/glib-compile-resources>
}

# vim:syntax=apparmor
