The attached patches add an option to select pppd to be SUID. This is
necessary to be able to run pppd as a (dial-in) server
Greetz
--
Sepp "ZaP" Holzmayr
--- ppure/rules/ppp.in 2009-08-17 11:23:36.000000000 +0200
+++ pfix/rules/ppp.in 2009-09-25 13:32:38.000000000 +0200
@@ -25,6 +25,12 @@
comment "build features"
+config PPP_SUID
+ bool
+ prompt "make pppd binary SUID"
+ help
+ Makes the pppd binary SUID for ruMakes the pppd binary SUID for Makes the pppd binary SUID for running as a server.
+
config PPP_IPV6
bool
prompt "enable ipv6 support"
--- ppure/rules/ppp.make 2009-08-17 11:23:36.000000000 +0200
+++ pfix/rules/ppp.make 2009-09-25 13:30:48.000000000 +0200
@@ -158,8 +158,13 @@
@$(call install_fixup, ppp,DEPENDS,)
@$(call install_fixup, ppp,DESCRIPTION,missing)
+ifdef PTXCONFIG_PPP_SUID
+ @$(call install_copy, ppp, 0, 0, 4755, \
+ $(PPP_DIR)/pppd/pppd, /usr/sbin/pppd)
+else
@$(call install_copy, ppp, 0, 0, 0755, \
$(PPP_DIR)/pppd/pppd, /usr/sbin/pppd)
+endif
ifdef PTXCONF_PPP_INST_CHAT
@$(call install_copy, ppp, 0, 0, 0755, \
--
ptxdist mailing list
[email protected]