From d04bb8f5b20e8ee532883f3898b0751b24e1c7ec Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 3 Jul 2022 20:28:26 +0100 Subject: [PATCH] feat(profiles): add systemd-resolve. --- apparmor.d/groups/systemd/systemd-resolve | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apparmor.d/groups/systemd/systemd-resolve diff --git a/apparmor.d/groups/systemd/systemd-resolve b/apparmor.d/groups/systemd/systemd-resolve new file mode 100644 index 00000000..2974f5f3 --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-resolve @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/resolvectl +@{exec_path} += /{usr/,}bin/systemd-resolve +profile systemd-resolve @{exec_path} { + include + + capability mknod, + capability net_admin, + + network netlink raw, + + @{exec_path} mr, + + include if exists +}