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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = /etc/initramfs/post-update.d/systemd-boot
@{att} = ""
profile initramfs-update-systemd-boot /etc/initramfs/post-update.d/systemd-boot {
  include <abstractions/base-strict>

  @{exec_path} mr,

  @{sh_path}                    r,
  @{bin}/kernel-install         px,
  @{bin}/bootctl                px,

  include if exists <local/initramfs-update-systemd-boot>
}

# vim:syntax=apparmor
