feat(profile): add mdadm-mkconf.
This commit is contained in:
parent
83b5b08c7e
commit
2a5f45b654
2 changed files with 31 additions and 0 deletions
30
apparmor.d/profiles-m-r/mdadm-mkconf
Normal file
30
apparmor.d/profiles-m-r/mdadm-mkconf
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue