# prone to casual user adjustment.
#
-ifeq ($(strip $(DOLFS)),y)
+ifeq ($(strip $(CONFIG_LFS)),y)
# For large file summit support
CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
endif
-ifeq ($(strip $(DODMALLOC)),y)
+ifeq ($(strip $(CONFIG_DMALLOC)),y)
# For testing mem leaks with dmalloc
CFLAGS+=-DDMALLOC
LIBRARIES:=-ldmalloc
else
- ifeq ($(strip $(DOEFENCE)),y)
+ ifeq ($(strip $(CONFIG_EFENCE)),y)
LIBRARIES:=-lefence
endif
endif
-ifeq ($(strip $(DODEBUG)),y)
+ifeq ($(strip $(CONFIG_DEBUG)),y)
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
LDFLAGS +=-Wl,-warn-common
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
LDFLAGS += -s -Wl,-warn-common
STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment
endif
-ifeq ($(strip $(DOSTATIC)),y)
+ifeq ($(strip $(CONFIG_STATIC)),y)
LDFLAGS += --static
endif
#include <sys/types.h>
#include "busybox.h"
-/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are
+/* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are
* enabled, we otherwise get a "storage size isn't constant error. */
#define ASCII 0377
#
# Build Options
#
-# DOSTATIC is not set
-DOLFS=y
+# CONFIG_STATIC is not set
+CONFIG_LFS=y
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
#
# Build Options
#
-# DOSTATIC is not set
-# DOLFS is not set
+# CONFIG_STATIC is not set
+# CONFIG_LFS is not set
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
#
# Build Options
#
-# DOSTATIC is not set
-DOLFS=y
+# CONFIG_STATIC is not set
+CONFIG_LFS=y
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
#
# Build Options
#
-DOSTATIC=y
-DOLFS=y
+CONFIG_STATIC=y
+CONFIG_LFS=y
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
#
# Build Options
#
-# DOSTATIC is not set
-DOLFS=y
+# CONFIG_STATIC is not set
+CONFIG_LFS=y
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
#
# Build Options
#
-# DOSTATIC is not set
-DOLFS=y
+# CONFIG_STATIC is not set
+CONFIG_LFS=y
# USING_CROSS_COMPILER is not set
EXTRA_CFLAGS_OPTIONS=""
#
# Debugging Options
#
-# DODEBUG is not set
+# CONFIG_DEBUG is not set
VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- DODEBUG = true
+ CONFIG_DEBUG = true
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
endif
endif
$(MAKE) dep
- $(MAKE) DODEBUG=$(DODEBUG)
+ $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
install -d install-$(PACKAGE_PREFIX)/bin
install busybox install-$(PACKAGE_PREFIX)/bin/busybox
endif
$(MAKE) dep
- $(MAKE) DODEBUG=$(DODEBUG)
+ $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
install -d install-$(PACKAGE_PREFIX)-static/bin
install busybox install-$(PACKAGE_PREFIX)-static/bin/busybox
endif
$(MAKE) dep
- $(MAKE) DODEBUG=$(DODEBUG)
+ $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-udeb install
cp ./debian/config-net-udeb-$(DEB_HOST_ARCH) .config
$(MAKE) dep
- $(MAKE) DODEBUG=$(DODEBUG)
+ $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-net-udeb install
endif
bool "Support for SUID/SGID handling"
default n
help
- Please submit a patch to add help text for this item.
+ Support SUID and SGID binaries.
config CONFIG_FEATURE_SUID_CONFIG
bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
default y if CONFIG_FEATURE_SUID
depends on CONFIG_FEATURE_SUID
help
- Please submit a patch to add help text for this item.
+ Allow the SUID / SGID state of an applet to be determinded runtime by
+ checking /etc/busybox.conf. The format of this file is as follows:
+
+ <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
+
+ An example might help:
+
+ [SUID]
+ su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
+ su = ssx # exactly the same
+
+ mount = sx- root.disk # applet mount can be run by root and members of group disk
+ # and runs with euid=0
+
+ cp = --- # disable applet cp for everyone
+
+ Robert 'sandman' Griebl has more information here:
+ <url: http://www.softforge.de/bb/suid.html >.
config CONFIG_FEATURE_SUID_CONFIG_QUIET
bool "Suppress warning message if /etc/busybox.conf is not readable"
default n
depends on CONFIG_FEATURE_SUID_CONFIG
help
- Please submit a patch to add help text for this item.
+ /etc/busybox.conf should be readable by the user needing the SUID, check
+ this option to avoid users to be notified about missing permissions.
config CONFIG_SELINUX
bool "Support NSA Security Enhanced Linux"
menu 'Build Options'
-config DOSTATIC
+config CONFIG_STATIC
bool "Build BusyBox as a static binary (no shared libs)"
default n
help
If you want to build a static BusyBox binary, which does not
use or require any shared libraries, then enable this option.
+ This can make BusyBox be considerably larger, so you should
+ leave this option false unless you have a good reason (i.e.
+ your target platform does not support shared libraries, or
+ you are building an initrd which doesn't need anything but
+ BusyBox, etc).
-config DOLFS
+ Most people will leave this set to 'N'.
+
+config CONFIG_LFS
bool "Build with Large File Support (for accessing files > 2 GB)"
default n
help
menu 'Debugging Options'
-config DOSTATIC
- bool "Build BusyBox as a static binary (no shared libs)"
- default n
- help
- If you want to build a static BusyBox binary, which does not
- use or require any shared libraries, then enable this option.
- This will make BusyBox be considerable larger, so you should
- leave this option false unless you have a good reason (i.e.
- your target platform does not support shared libraries, or
- you are building an initrd which doesn't need anything but
- BusyBox, etc).
-
- Most people will leave this set to 'N'.
-
-config DODEBUG
+config CONFIG_DEBUG
bool "Build BusyBox with Debugging symbols"
default n
help
Otherwise, answer N.
-config DODMALLOC
+config CONFIG_DMALLOC
bool "Build BusyBox with dmalloc support"
default n
- depends on DODEBUG && !DOEFENCE
+ depends on CONFIG_DEBUG && !CONFIG_EFENCE
help
This enables compiling with dmalloc ( http://dmalloc.com/ )
which is an excellent public domain mem leak and malloc problem
This will make BusyBox be considerable larger and run slower, so
you should leave this option disabled for production use.
-config DOEFENCE
+config CONFIG_EFENCE
bool "Build BusyBox with Electric-fence support"
default n
- depends on DODEBUG && !DODMALLOC
+ depends on CONFIG_DEBUG && !CONFIG_DMALLOC
help
This enables compiling with Electric-fence support. Electric
fence is another very useful malloc debugging library which used
}
}
-/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are
+/* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are
* enabled, we otherwise get a "storage size isn't constant error. */
static int serveConnection(char *tmpbuf, int n_read)
{