feat(profile): add mdadm-mkconf.

This commit is contained in:
Alexandre Pujol 2025-05-25 15:14:56 +02:00
parent 813758a1e0
commit 7361c21c40
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = /usr/share/mdadm/mkconf
profile mdadm-mkconf @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{sh_path} r,
@{bin}/date ix,
@{bin}/cat ix,
@{bin}/sed ix,
@{sbin}/mdadm Px,
/etc/default/mdadm r,
/ r,
/var/tmp/mkinitramfs_@{rand6}/etc/mdadm/mdadm.conf.tmp rw,
include if exists <local/mdadm-mkconf>
}
# vim:syntax=apparmor

View file

@ -237,6 +237,7 @@ lvmdump complain
lvmpolld complain lvmpolld complain
man complain man complain
mate-notification-daemon complain mate-notification-daemon complain
mdadm-mkconf complain
ModemManager attach_disconnected,complain ModemManager attach_disconnected,complain
mount attach_disconnected,complain mount attach_disconnected,complain
multipath attach_disconnected,complain multipath attach_disconnected,complain