Update dhcpcd

This commit is contained in:
curiosityseeker 2023-02-21 12:54:27 +01:00 committed by Alex
parent 2e00023c23
commit 46bf6f9016

View file

@ -4,10 +4,9 @@ abi <abi/3.0>,
include <tunables/global> include <tunables/global>
@{exec_path} = /{usr/,}bin/dhcpcd @{exec_path} = /{usr/,}bin/dhcpcd
profile dhcpcd @{exec_path} flags=(attach_disconnected, mediate_deleted) { profile dhcpcd @{exec_path} flags=(attach_disconnected) {
include <abstractions/base> include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
capability dac_override, capability dac_override,
capability dac_read_search, capability dac_read_search,
@ -26,39 +25,38 @@ profile dhcpcd @{exec_path} flags=(attach_disconnected, mediate_deleted) {
network netlink raw, network netlink raw,
network packet raw, network packet raw,
/{usr/,}bin/bash ix, @{exec_path} mr,
/{usr/,}bin/cat mrix,
/{usr/,}bin/chmod mrix, /{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/cmp mrix, /{usr/,}bin/cat rix,
/{usr/,}bin/mkdir mrix, /{usr/,}bin/chmod rix,
/{usr/,}bin/rm mrix, /{usr/,}bin/cmp rix,
/{usr/,}bin/sed mrix, /{usr/,}bin/dhcpcd mr,
/{usr/,}lib/dhcpcd/dhcpcd-run-hooks mrix, /{usr/,}bin/mkdir rix,
owner /dev/tty rw, /{usr/,}bin/rm rix,
owner /var/lib/dhcpcd/*.lease rw, /{usr/,}bin/sed rix,
owner /var/lib/dhcpcd/secret rw, /{usr/,}lib/dhcpcd/dhcpcd-run-hooks rix,
owner @{PROC}/*/net/if_inet6 r, /dev/tty rw,
owner @{PROC}/*/stat r, /var/lib/dhcpcd/*.lease rw,
owner @{PROC}/sys/kernel/hostname r, /var/lib/dhcpcd/secret rw,
owner @{PROC}/sys/net/ipv{4,6}/conf/** r, @{PROC}/@{pid}/net/if_inet6 r,
owner @{PROC}/sys/net/ipv{4,6}/conf/@{hex}/accept_ra rw, @{PROC}/@{pid}/stat r,
owner @{etc_ro}/dhcpcd.conf r, @{PROC}/sys/kernel/hostname r,
owner @{etc_ro}/ld.so.cache r, @{PROC}/sys/net/ipv{4,6}/conf/** r,
owner @{etc_ro}/ld.so.preload r, @{PROC}/sys/net/ipv{4,6}/conf/@{hex}/accept_ra rw,
owner @{etc_ro}/nsswitch.conf r, @{etc_ro}/dhcpcd.conf r,
owner @{etc_ro}/passwd r, @{etc_rw}/resolv.conf rw,
owner @{etc_rw}/resolv.conf rw, @{run}/dhcpcd/@{hex}.pid wk,
owner @{run}/dhcpcd/@{hex}.pid wk, @{run}/dhcpcd/@{hex}.sock w,
owner @{run}/dhcpcd/@{hex}.sock w, @{run}/dhcpcd/hook-state/ rw,
owner @{run}/dhcpcd/hook-state/ rw, @{run}/dhcpcd/hook-state/resolv.conf.*.{dhcp,link} rw,
owner @{run}/dhcpcd/hook-state/resolv.conf.*.{dhcp,link} rw, @{run}/dhcpcd/hook-state/resolv.conf/ rw,
owner @{run}/dhcpcd/hook-state/resolv.conf/ rw, @{run}/dhcpcd/{.pid,pid} rwk,
owner @{run}/dhcpcd/{.pid,pid} rwk, @{run}/dhcpcd/{.sock,sock} w,
owner @{run}/dhcpcd/{.sock,sock} w, @{run}/dhcpcd/unpriv.sock w,
owner @{run}/dhcpcd/unpriv.sock w, @{run}/udev/data/n[0-9]* r,
owner @{run}/udev/data/n[0-9]* r, @{sys}/devices/pci[0-9]*/**/uevent r,
owner @{sys}/devices/pci[0-9]*/**/uevent r, @{sys}/devices/virtual/dmi/id/product_uuid r,
owner @{sys}/devices/virtual/dmi/id/product_uuid r, @{sys}/devices/virtual/net/**/{tun_flags,uevent} r,
owner @{sys}/devices/virtual/net/**/{tun_flags,uevent} r,
} }