diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-06-10 17:08:22 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-07-26 13:39:46 +0200 |
commit | 9078633feeb129d679c97d900807ef2d5b253b65 (patch) | |
tree | 153f82ae904f01bcba2edd6197b7f5995a013a05 /Makefile.custom | |
parent | 7801148a816a2ab1c2f9437c8992c86722361147 (diff) | |
download | busybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.tar.gz busybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.tar.bz2 busybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.zip |
buildsys: Add helper to list suid applets
Add a helper script that lists all applets that
- do or may require SUID provileges (busybox.cfg.suid)
- do not require SUID provileges (busybox.cfg.nosuid)
Some setups prefer to build two busybox binaries, one that is suid which
contains all applets that do or may require suid privileges, and a
second one for all the rest (which drops suid). To ease splitting these
two binaries, generate a list of CONFIG_ items for the suid binary.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Makefile.custom')
-rw-r--r-- | Makefile.custom | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.custom b/Makefile.custom index 6da79e6e4..3561e5768 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -3,7 +3,12 @@ | |||
3 | # ========================================================================== | 3 | # ========================================================================== |
4 | 4 | ||
5 | busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h | 5 | busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h |
6 | $(Q)-$(SHELL) $^ >$@ | 6 | $(Q)-$(SHELL) $^ > $@ |
7 | |||
8 | busybox.cfg.suid: $(srctree)/applets/busybox.mksuid $(objtree)/include/autoconf.h include/applets.h | ||
9 | $(Q)-SUID="yes" $(SHELL) $^ > $@ | ||
10 | busybox.cfg.nosuid: $(srctree)/applets/busybox.mksuid $(objtree)/include/autoconf.h include/applets.h | ||
11 | $(Q)-SUID="DROP" $(SHELL) $^ > $@ | ||
7 | 12 | ||
8 | .PHONY: install | 13 | .PHONY: install |
9 | ifeq ($(CONFIG_INSTALL_APPLET_SYMLINKS),y) | 14 | ifeq ($(CONFIG_INSTALL_APPLET_SYMLINKS),y) |