Add mkinitcpio support.

This commit is contained in:
Alexandre Pujol 2021-04-04 00:34:05 +01:00
parent a0d634b48f
commit ec2e1fc1c2
Failed to generate hash of commit

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -29,6 +30,7 @@ profile kmod @{exec_path} {
/{usr/,}lib/modprobe.d/{,*.conf} r,
/etc/modprobe.d/{,*.conf} r,
/etc/depmod.d/{,**} r,
/{usr/,}lib/modules/*/modules.* rw,
@ -40,6 +42,9 @@ profile kmod @{exec_path} {
@{PROC}/cmdline r,
@{PROC}/modules r,
# Initframs
owner /tmp/mkinitcpio.*/{,**} rw,
# Needed for static-nodes
#capability dac_override,
#owner @{PROC}/@{pid}/fd/1 w,