mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 02:35:06 +01:00
42 lines
917 B
Text
42 lines
917 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2022 Mikhail Morfikov
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/dhclient
|
|
profile dhclient @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
|
|
capability net_admin,
|
|
capability net_bind_service,
|
|
capability net_raw,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
network packet raw,
|
|
|
|
signal (send) peer=unconfined,
|
|
|
|
@{exec_path} mr,
|
|
|
|
# To run dhclient scripts
|
|
@{bin}/dhclient-script rPx,
|
|
|
|
/etc/dhclient.conf r,
|
|
/etc/dhcp/{,**} r,
|
|
|
|
/var/lib/dhcp{,3}/dhclient* rw,
|
|
owner @{run}/dhclient*.pid rw,
|
|
owner @{run}/dhclient*.lease* rw,
|
|
|
|
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
|
|
|
include if exists <local/dhclient>
|
|
}
|