diff --git a/apparmor.d/profiles-m-r/mdevctl b/apparmor.d/profiles-m-r/mdevctl new file mode 100644 index 000000000..e0e87a501 --- /dev/null +++ b/apparmor.d/profiles-m-r/mdevctl @@ -0,0 +1,24 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/mdevctl +profile mdevctl @{exec_path} { + include + + @{exec_path} mr, + + /etc/mdevctl.d/{,**} r, + + @{PROC}/@{pids}/maps r, + + @{sys}/bus/mdev/devices/ r, + @{sys}/class/mdev_bus/ r, + @{sys}/devices/pci[0-9]*/**/mdev_supported_types/{,**} r, + + include if exists +} \ No newline at end of file