From ebc8b29b1dbf54113b03af006afdc47b18c99284 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 14 Mar 2025 22:00:52 +0100 Subject: [PATCH] feat(profile): add initial profile for resolvectl. --- apparmor.d/groups/systemd/resolvectl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apparmor.d/groups/systemd/resolvectl diff --git a/apparmor.d/groups/systemd/resolvectl b/apparmor.d/groups/systemd/resolvectl new file mode 100644 index 000000000..dc3090c5a --- /dev/null +++ b/apparmor.d/groups/systemd/resolvectl @@ -0,0 +1,25 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2025 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/resolvectl +profile resolvectl @{exec_path} { + include + include + include + include + + #aa:dbus talk bus=system name=org.freedesktop.resolve1 label=systemd-resolved + + @{exec_path} mr, + + @{pager_path} rPx -> child-pager, + + include if exists +} + +# vim:syntax=apparmor