Add profiles for grub-mkconfig, grub-mkrelpath, grub-probe, grub-script-check and update-grub.

This commit is contained in:
Jeroen Rijken 2022-08-01 18:23:39 +02:00 committed by Alex
parent c0356e92e5
commit 169a730d3f
5 changed files with 163 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# 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} = /{usr/,}{s,}bin/update-grub{2,}
profile update-grub @{exec_path} flags=(complain) {
include <abstractions/base>
@{exec_path} rm,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}{s,}bin/grub-mkconfig rPx,
include if exists <local/update-grub>
}