feat(profile): include more rule from #94.

This commit is contained in:
Alexandre Pujol 2023-01-14 13:00:01 +00:00
parent 7c4c48f4c3
commit 2431ba98aa
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
27 changed files with 119 additions and 8 deletions

View file

@ -1,5 +1,6 @@
# 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>,
@ -10,9 +11,16 @@ include <tunables/global>
profile grub-mount @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/disks-read>
capability sys_admin,
@{exec_path} mr,
/ r,
/var/lib/os-prober/mount/ r,
/dev/fuse rw,
include if exists <local/grub-mount>
}