]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: Capsicum needs root to access ipv6 forwarding sysctl
authorRoy Marples <roy@marples.name>
Tue, 3 Sep 2024 08:37:47 +0000 (09:37 +0100)
committerRoy Marples <roy@marples.name>
Wed, 4 Sep 2024 09:51:12 +0000 (10:51 +0100)
commitb22ef29e3efadac6ac3b7b69b36304592150b19b
treef7181fdb31059c392ac1f36d83989c20a15e1f83
parentae3d1b550a55936f6d39aa17638d87619bf328ee
privsep: Capsicum needs root to access ipv6 forwarding sysctl

Optimise the flow so that if we do have a global address on the
source interface we avoid the sysctl via the privileged process.

Generally the only time we don't is when we de-configure an
interface or we are configuring an interface where there is
no autoconf prefix from the RA and the only globals come
from a DHCPv6 Prefix Delegation to other interfaces which
requires us to be a router.
src/ipv6.c
src/ipv6nd.c
src/privsep-root.c
src/privsep.h