feat(profiles): add networkd-dispatcher.

This commit is contained in:
Alexandre Pujol 2022-06-03 20:17:08 +01:00
parent 82bbe96bfa
commit b9552c3f66
Failed to generate hash of commit

View file

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/networkd-dispatcher
profile networkd-dispatcher @{exec_path} {
include <abstractions/base>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>
include <abstractions/python>
@{exec_path} mr,
/{usr/,}bin/networkctl rPx,
@{run}/systemd/notify rw,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/mounts r,
include if exists <local/networkd-dispatcher>
}