]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: Handle all file IO in the Priviledged Actioneer
authorRoy Marples <roy@marples.name>
Tue, 12 May 2020 09:26:35 +0000 (10:26 +0100)
committerRoy Marples <roy@marples.name>
Tue, 12 May 2020 09:26:35 +0000 (10:26 +0100)
commitcf85354d04d98ba2117ac413edd97a46cda05293
tree5c79c1346f9b7435837be856798f8aa0099be3be
parent123d78292563042e643024fc9abf154d631b0cad
privsep: Handle all file IO in the Priviledged Actioneer

This allows us to move the database directory back into the
root of the filesystem.
While here, harden the files by denying any user read access to them.

As part of this change, init the DUID from any machine data and
cache the default DHCP vendor field before dropping priviledges as we
may lose access to this later.
27 files changed:
src/common.c
src/common.h
src/dhcp-common.c
src/dhcp-common.h
src/dhcp.c
src/dhcp6.c
src/dhcpcd-embedded.c.in
src/dhcpcd-embedded.h.in
src/dhcpcd.c
src/dhcpcd.h
src/duid.c
src/duid.h
src/genembedc
src/if-bsd.c
src/if-linux.c
src/if-options.c
src/if-options.h
src/if.h
src/ipv6.c
src/logerr.c
src/privsep-bpf.c
src/privsep-bsd.c
src/privsep-inet.c
src/privsep-root.c
src/privsep-root.h
src/privsep.c
src/privsep.h