Signed-off-by: Alexander Stein <alexander.st...@systec-electronic.com>
---
 generic/etc/busybox.conf |    5 +++++
 rules/busybox.make       |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 generic/etc/busybox.conf

diff --git a/generic/etc/busybox.conf b/generic/etc/busybox.conf
new file mode 100644
index 0000000..71a5bd5
--- /dev/null
+++ b/generic/etc/busybox.conf
@@ -0,0 +1,5 @@
+[SUID]
+#lines starting with # are comments
+#<applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
+
+#reboot = ssx root.0 # applet reboot can be run by anyone and runs with 
euid=0/egid=0
diff --git a/rules/busybox.make b/rules/busybox.make
index 1616ab1..bf2eb2b 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -94,6 +94,9 @@ $(STATEDIR)/busybox.targetinstall:
 
 ifdef PTXCONF_BUSYBOX_FEATURE_SUID
        @$(call install_copy, busybox, 0, 0, 4755, -, /bin/busybox)
+ifdef PTXCONF_BUSYBOX_FEATURE_SUID_CONFIG
+       @$(call install_alternative, busybox, 0, 0, 0644, /etc/busybox.conf)
+endif
 else
        @$(call install_copy, busybox, 0, 0, 755, -, /bin/busybox)
 endif
-- 
1.6.4.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to