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
commitc11389d7a250d883a6d4efc0ebee1165250dbd93 (patch)
tree84ed4817d5c592cf95581d72109be57e0713723a /package/network/services/lldpd/Makefile
parent463bc01f6d318325e1cfebd67b1852e081d687d8 (diff)
downloadupstream-c11389d7a250d883a6d4efc0ebee1165250dbd93.tar.gz
upstream-c11389d7a250d883a6d4efc0ebee1165250dbd93.tar.bz2
upstream-c11389d7a250d883a6d4efc0ebee1165250dbd93.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44967 3c298f89-4303-0410-b956-a3cf2f4a3e73
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) \