diff options
| author | Roy Marples <roy@marples.name> | 2020-01-21 22:35:31 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-01-21 22:35:31 +0000 |
| commit | b7351730bfba82a27a3ce542a2c36564405a6baf (patch) | |
| tree | 5e499291c51a7336c96c72d2396a8af4d06781c5 /BUILDING.md | |
| parent | b2888271d79d39d972db7746f5d4ecdcf1372586 (diff) | |
| download | dhcpcd-b7351730bfba82a27a3ce542a2c36564405a6baf.tar.xz | |
privsep: Note CHROOT script
While here make BUILDING.md match reality and fix a warning
compiling without privsep.
Diffstat (limited to 'BUILDING.md')
| -rw-r--r-- | BUILDING.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/BUILDING.md b/BUILDING.md index 87df556d..20157b76 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -22,6 +22,7 @@ Or by removing the following features: * `--disable-arping` * `--disable-ipv4ll` * `--disable-dhcp6` + * `--disable-privsep` You can also move the embedded extended configuration from the dhcpcd binary to an external file (LIBEXECDIR/dhcpcd-definitions.conf) @@ -30,11 +31,6 @@ If dhcpcd cannot load this file at runtime, dhcpcd will work but will not be able to decode any DHCP/DHCPv6 options that are not defined by the user in /etc/dhcpcd.conf. This does not really change the total on disk size. -## Priviledge Separation -To enable this, use the `--enable-privsep` configure option. -It's not enabled by default because it's an experimental feature and -requires adding a user (default `_dhcpcd`) to the system. - ## Cross compiling If you're cross compiling you may need set the platform if OS is different from the host. @@ -170,6 +166,11 @@ The configure program attempts to find hooks for systems you have installed. To add more simply `./configure -with-hook=ntp.conf` +If running privilege separation and on Linux then the `00-linux` hook is +**mandatory**. +If you choose not to run it, then you are responsible for setting up the +needed mount points: `/dev`, `/proc`, `/sys`, `/run/udev` + Some system services expose the name of the service we are in, by default dhcpcd will pick `RC_SVCNAME` from the environment. You can override this in `CPPFLAGS+= -DRC_SVCNAME="YOUR_SVCNAME"`. |
