From 939363a9a78187d21fdee6589e57a0cb87d3dea4 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Mon, 13 Jun 2022 22:14:29 +0100 Subject: [PATCH] feat(profiles): add mdevctl. --- apparmor.d/profiles-m-r/mdevctl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apparmor.d/profiles-m-r/mdevctl diff --git a/apparmor.d/profiles-m-r/mdevctl b/apparmor.d/profiles-m-r/mdevctl new file mode 100644 index 00000000..e0e87a50 --- /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