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 +}