apparmor.d/apparmor.d/groups/network/nm-dhcp-helper
2022-05-21 17:25:31 +01:00

29 lines
630 B
Text

# 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/,}lib/nm-dhcp-helper
profile nm-dhcp-helper @{exec_path} {
include <abstractions/base>
include <abstractions/dbus>
network inet dgram,
network inet6 dgram,
ptrace (readby) peer=NetworkManager,
signal (receive) peer=NetworkManager,
signal (send) peer=dhclient,
@{exec_path} mr,
/var/lib/NetworkManager/*lease r,
@{run}/NetworkManager/private-dhcp rw,
include if exists <local/nm-dhcp-helper>
}