2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
2022-04-07 21:53:35 +02:00
|
|
|
# Copyright (C) 2018-2022 Mikhail Morfikov
|
|
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
2021-04-01 17:17:47 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{bin}/dhclient
|
2020-09-12 17:19:23 +02:00
|
|
|
profile dhclient @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
include <abstractions/openssl>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2022-04-07 21:53:35 +02:00
|
|
|
capability net_admin,
|
2020-09-12 17:19:23 +02:00
|
|
|
capability net_bind_service,
|
2022-04-07 21:53:35 +02:00
|
|
|
capability net_raw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network netlink raw,
|
|
|
|
network packet raw,
|
|
|
|
|
2021-09-28 22:53:50 +02:00
|
|
|
signal (send) peer=unconfined,
|
|
|
|
|
2020-09-12 17:19:23 +02:00
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
# To run dhclient scripts
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/dhclient-script rPx,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/etc/dhclient.conf r,
|
|
|
|
/etc/dhcp/{,**} r,
|
|
|
|
|
|
|
|
/var/lib/dhcp{,3}/dhclient* rw,
|
2020-10-25 10:23:34 +01:00
|
|
|
owner @{run}/dhclient*.pid rw,
|
|
|
|
owner @{run}/dhclient*.lease* rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/dhclient>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|