apparmor.d/apparmor.d/groups/grub/grub-mkrelpath
Alexandre Pujol 275d6b6e62
feat(profiles): replace old [0-9]* glob by @{int}
Beware some [0-9]* glob are actually not proper @{int}.
2023-08-18 17:09:53 +01:00

34 lines
768 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/grub-mkrelpath
profile grub-mkrelpath @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability sys_admin,
@{exec_path} mr,
/{usr/,}{local/,}{s,}bin/zpool rPx,
/ r,
/usr/share/grub/* r,
/boot/grub/themes/{,**} r,
/tmp/grub-btrfs.*/@snapshots/@{int}/snapshot/boot/ r,
/tmp/grub-btrfs.*/@/.snapshots/@{int}/snapshot/boot/ r,
/tmp/grub-btrfs.*/@_backup_[0-9]*/boot/ r,
/tmp/grub-btrfs.*/ r,
@{PROC}/@{pids}/mountinfo r,
include if exists <local/grub-mkrelpath>
}