apparmor.d -> profiles
This commit is contained in:
parent
c408a878b7
commit
e9b8e62fcd
726 changed files with 0 additions and 0 deletions
54
profiles/dhclient
Normal file
54
profiles/dhclient
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# vim:syntax=apparmor
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
# License published by the Free Software Foundation.
|
||||
#
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}sbin/dhclient
|
||||
profile dhclient @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
|
||||
# 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 <local/dhclient>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue