# apparmor.d - Full set of apparmor profiles # Copyright (C) 2018-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}sbin/dhclient profile dhclient @{exec_path} { include include include # To remove the following errors: # dhclient[]: Open a socket for LPF: Operation not permitted capability net_raw, # To remove the following errors: # dhclient[]: Can't bind to dhcp address: Permission denied capability net_bind_service, # Needed? audit deny capability net_admin, audit deny capability sys_module, network inet dgram, network inet6 dgram, network netlink raw, network packet raw, @{exec_path} mr, # To run dhclient scripts /{usr/,}sbin/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 }