summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorJosef Holzmayr <holzmayr@rsi-elektrotechnik.de>2009-09-28 09:03:32 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-09-28 10:24:04 +0200
commitc8e03ca70e9dc0d30af16e96cc9c2fe30296a100 (patch)
treea5e93ac4a49731e92252544f5a616db9d2477b9b /rules
parent8fb83801d0c5fde526c08178c75668afbb5cf0ab (diff)
downloadptxdist-c8e03ca70e9dc0d30af16e96cc9c2fe30296a100.tar.gz
ptxdist-c8e03ca70e9dc0d30af16e96cc9c2fe30296a100.tar.xz
make pppd selectable to be SUID
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. Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de> [mkl: line wrapped ppp.in help text] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/ppp.in7
-rw-r--r--rules/ppp.make5
2 files changed, 12 insertions, 0 deletions
diff --git a/rules/ppp.in b/rules/ppp.in
index 86b251019..827d5003d 100644
--- a/rules/ppp.in
+++ b/rules/ppp.in
@@ -25,6 +25,13 @@ if PPP
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"
diff --git a/rules/ppp.make b/rules/ppp.make
index 98167606b..3feee4c97 100644
--- a/rules/ppp.make
+++ b/rules/ppp.make
@@ -158,8 +158,13 @@ $(STATEDIR)/ppp.targetinstall:
@$(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, \