From a8b1e4609542a23422bd0168a85f82bfb2464698 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 8 Sep 2024 12:21:56 +0100 Subject: [PATCH] feat(profile): add dmsetup fix #469 --- apparmor.d/profiles-a-f/dmsetup | 23 +++++++++++++++++++++++ dists/flags/main.flags | 1 + 2 files changed, 24 insertions(+) create mode 100644 apparmor.d/profiles-a-f/dmsetup diff --git a/apparmor.d/profiles-a-f/dmsetup b/apparmor.d/profiles-a-f/dmsetup new file mode 100644 index 00000000..305e0357 --- /dev/null +++ b/apparmor.d/profiles-a-f/dmsetup @@ -0,0 +1,23 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/dmsetup +profile dmsetup @{exec_path} { + include + include + + capability sys_admin, + + @{exec_path} mr, + + @{PROC}/devices r, + + include if exists +} + +# vim:syntax=apparmor diff --git a/dists/flags/main.flags b/dists/flags/main.flags index e051078a..d26b951f 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -90,6 +90,7 @@ ddcutil complain dino attach_disconnected,complain DiscoverNotifier complain dkms attach_disconnected,complain +dmsetup complain dockerd attach_disconnected,complain dolphin complain downloadhelper complain