feat(profiles): add systemd-resolve.

This commit is contained in:
Alexandre Pujol 2022-07-03 20:28:26 +01:00
parent f6de2fbe7a
commit d04bb8f5b2
Failed to generate hash of commit

View file

@ -0,0 +1,22 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/resolvectl
@{exec_path} += /{usr/,}bin/systemd-resolve
profile systemd-resolve @{exec_path} {
include <abstractions/base>
capability mknod,
capability net_admin,
network netlink raw,
@{exec_path} mr,
include if exists <local/systemd-resolve>
}