diff options
| author | Roy Marples <roy@marples.name> | 2020-05-12 10:26:35 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-12 10:26:35 +0100 |
| commit | cf85354d04d98ba2117ac413edd97a46cda05293 (patch) | |
| tree | 5c79c1346f9b7435837be856798f8aa0099be3be /src/if.h | |
| parent | 123d78292563042e643024fc9abf154d631b0cad (diff) | |
| download | dhcpcd-cf85354d04d98ba2117ac413edd97a46cda05293.tar.xz | |
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.
Diffstat (limited to 'src/if.h')
| -rw-r--r-- | src/if.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -95,6 +95,8 @@ typedef unsigned long ioctl_request_t; #define FRAMEHDRLEN_MAX 14 /* only ethernet support */ #define FRAMELEN_MAX (FRAMEHDRLEN_MAX + 9216) +#define UDPLEN_MAX 64 * 1024 + /* Work out if we have a private address or not * 10/8 * 172.16/12 |
