37 lines
805 B
Text
37 lines
805 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.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,
|
|
|
|
@{efi}/ r,
|
|
@{efi}/grub/themes/{,**} r,
|
|
|
|
/tmp/grub-btrfs.*/@snapshots/@{int}/snapshot/boot/ r,
|
|
/tmp/grub-btrfs.*/@/.snapshots/@{int}/snapshot/boot/ r,
|
|
/tmp/grub-btrfs.*/@_backup_*/boot/ r,
|
|
/tmp/grub-btrfs.*/ r,
|
|
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
|
|
include if exists <local/grub-mkrelpath>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|