aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/lldpd/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-03-24 10:13:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-03-24 10:13:08 +0000
commit437d710546e20c9ccabc7866dd9f57de3c0f2b9d (patch)
treef0e1cc03da57c3b1f64238b34b27f1e69afca4a3 /package/network/services/lldpd/Makefile
parent02e2548b844f987edab5fa82fb6283419f3381ff (diff)
downloadupstream-437d710546e20c9ccabc7866dd9f57de3c0f2b9d.tar.gz
upstream-437d710546e20c9ccabc7866dd9f57de3c0f2b9d.tar.bz2
upstream-437d710546e20c9ccabc7866dd9f57de3c0f2b9d.zip
lldpd: add option to disable privilege separation
Helpful to disable when debugging lldpd crashes (when working on it). When privilege separation is on, some crashes are stack-traced to some privilege separation code. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 44967
Diffstat (limited to 'package/network/services/lldpd/Makefile')
-rw-r--r--package/network/services/lldpd/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index ff367f1c3e..d80840e4cb 100644
--- a/package/network/services/lldpd/Makefile
+++ b/package/network/services/lldpd/Makefile
@@ -85,9 +85,11 @@ define Package/lldpd/conffiles
endef
CONFIGURE_ARGS += \
+ $(if $(CONFIG_LLDPD_WITH_PRIVSEP), \
--with-privsep-user=lldp \
--with-privsep-group=lldp \
--with-privsep-chroot=/var/run/lldp \
+ ,--disable-privsep) \
--with-readline=no \
--with-embedded-libevent=no \
$(if $(CONFIG_LLDPD_WITH_CDP),,--disable-cdp) \