diff options
| author | Roy Marples <roy@marples.name> | 2019-12-01 22:09:18 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-12-01 22:09:18 +0000 |
| commit | 8a7aa9822d71d4e2755cff3c151ec4f9df3bb83e (patch) | |
| tree | a4376ac82d15aca6fd5ca774410822cb46c0fa93 /configure | |
| parent | 729c2405314dc4c6b7156cd12a0f31fb478ec3b3 (diff) | |
| download | dhcpcd-8a7aa9822d71d4e2755cff3c151ec4f9df3bb83e.tar.xz | |
privsep: Enable privsep by default
Except on Solaris where it's not expected to work.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -527,9 +527,16 @@ if [ -z "$AUTH" -o "$AUTH" = yes ]; then echo "SRCS+= auth.c" >>$CONFIG_MK fi +if [ -z "$PRIVSEP" ]; then + # priviledge separation works fine .... except on Solaris + case "$OS" in + solaris*|sunos*) PRIVSEP=no;; + *) PRIVSEP=yes;; + esac +fi + if [ "$PRIVSEP" = yes ]; then echo "Enabling Priviledge Separation" - echo "WARNING: This is an experimental feature" echo "CPPFLAGS+= -DPRIVSEP" >>$CONFIG_MK echo "DHCPCD_SRCS+= privsep.c privsep-root.c privsep-inet.c" \ >>$CONFIG_MK |
