apparmor.d/apparmor.d/groups/grub/update-grub
2023-07-26 12:06:20 +02:00

21 lines
439 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/update-grub{2,}
profile update-grub @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{bin}/grub-mkconfig rPx,
/dev/tty[0-9]* rw,
include if exists <local/update-grub>
}