diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-22 22:15:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-22 22:15:21 +0000 |
commit | e5272074c9bf554fa9f24a97899de584b1c127c2 (patch) | |
tree | b2cb25c7af226c471111fd04f14e7502f41b1155 | |
parent | 20c9f1e5e7290c7d22bdf4217e66b9d75e9e73df (diff) | |
download | busybox-w32-e5272074c9bf554fa9f24a97899de584b1c127c2.tar.gz busybox-w32-e5272074c9bf554fa9f24a97899de584b1c127c2.tar.bz2 busybox-w32-e5272074c9bf554fa9f24a97899de584b1c127c2.zip |
eliminate DOSTATIC, DODEBUG, etc and name them sensibly
-rw-r--r-- | Rules.mak | 10 | ||||
-rw-r--r-- | coreutils/tr.c | 2 | ||||
-rw-r--r-- | debian/config-deb | 6 | ||||
-rw-r--r-- | debian/config-net-udeb | 6 | ||||
-rw-r--r-- | debian/config-net-udeb-i386 | 6 | ||||
-rw-r--r-- | debian/config-static | 6 | ||||
-rw-r--r-- | debian/config-udeb | 6 | ||||
-rw-r--r-- | debian/config-udeb-i386 | 6 | ||||
-rwxr-xr-x | debian/rules | 10 | ||||
-rw-r--r-- | sysdeps/linux/Config.in | 59 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 2 |
11 files changed, 65 insertions, 54 deletions
@@ -140,20 +140,20 @@ OPTIMIZATIONS=$(OPTIMIZATION) -fomit-frame-pointer | |||
140 | # prone to casual user adjustment. | 140 | # prone to casual user adjustment. |
141 | # | 141 | # |
142 | 142 | ||
143 | ifeq ($(strip $(DOLFS)),y) | 143 | ifeq ($(strip $(CONFIG_LFS)),y) |
144 | # For large file summit support | 144 | # For large file summit support |
145 | CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | 145 | CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 |
146 | endif | 146 | endif |
147 | ifeq ($(strip $(DODMALLOC)),y) | 147 | ifeq ($(strip $(CONFIG_DMALLOC)),y) |
148 | # For testing mem leaks with dmalloc | 148 | # For testing mem leaks with dmalloc |
149 | CFLAGS+=-DDMALLOC | 149 | CFLAGS+=-DDMALLOC |
150 | LIBRARIES:=-ldmalloc | 150 | LIBRARIES:=-ldmalloc |
151 | else | 151 | else |
152 | ifeq ($(strip $(DOEFENCE)),y) | 152 | ifeq ($(strip $(CONFIG_EFENCE)),y) |
153 | LIBRARIES:=-lefence | 153 | LIBRARIES:=-lefence |
154 | endif | 154 | endif |
155 | endif | 155 | endif |
156 | ifeq ($(strip $(DODEBUG)),y) | 156 | ifeq ($(strip $(CONFIG_DEBUG)),y) |
157 | CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE | 157 | CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE |
158 | LDFLAGS +=-Wl,-warn-common | 158 | LDFLAGS +=-Wl,-warn-common |
159 | STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging | 159 | STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging |
@@ -162,7 +162,7 @@ else | |||
162 | LDFLAGS += -s -Wl,-warn-common | 162 | LDFLAGS += -s -Wl,-warn-common |
163 | STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment | 163 | STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment |
164 | endif | 164 | endif |
165 | ifeq ($(strip $(DOSTATIC)),y) | 165 | ifeq ($(strip $(CONFIG_STATIC)),y) |
166 | LDFLAGS += --static | 166 | LDFLAGS += --static |
167 | endif | 167 | endif |
168 | 168 | ||
diff --git a/coreutils/tr.c b/coreutils/tr.c index a5638d7ec..4e69dc89c 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <sys/types.h> | 31 | #include <sys/types.h> |
32 | #include "busybox.h" | 32 | #include "busybox.h" |
33 | 33 | ||
34 | /* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are | 34 | /* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are |
35 | * enabled, we otherwise get a "storage size isn't constant error. */ | 35 | * enabled, we otherwise get a "storage size isn't constant error. */ |
36 | #define ASCII 0377 | 36 | #define ASCII 0377 |
37 | 37 | ||
diff --git a/debian/config-deb b/debian/config-deb index 862e06f1f..4d63e690f 100644 --- a/debian/config-deb +++ b/debian/config-deb | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_INSTALLER=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | # DOSTATIC is not set | 23 | # CONFIG_STATIC is not set |
24 | DOLFS=y | 24 | CONFIG_LFS=y |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -362,4 +362,4 @@ CONFIG_FEATURE_MOUNT_LOOP=y | |||
362 | # | 362 | # |
363 | # Debugging Options | 363 | # Debugging Options |
364 | # | 364 | # |
365 | # DODEBUG is not set | 365 | # CONFIG_DEBUG is not set |
diff --git a/debian/config-net-udeb b/debian/config-net-udeb index 0a7990cf5..b9426a2a3 100644 --- a/debian/config-net-udeb +++ b/debian/config-net-udeb | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | # DOSTATIC is not set | 23 | # CONFIG_STATIC is not set |
24 | # DOLFS is not set | 24 | # CONFIG_LFS is not set |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -366,4 +366,4 @@ CONFIG_UMOUNT=y | |||
366 | # | 366 | # |
367 | # Debugging Options | 367 | # Debugging Options |
368 | # | 368 | # |
369 | # DODEBUG is not set | 369 | # CONFIG_DEBUG is not set |
diff --git a/debian/config-net-udeb-i386 b/debian/config-net-udeb-i386 index d82fabb94..1335bac01 100644 --- a/debian/config-net-udeb-i386 +++ b/debian/config-net-udeb-i386 | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | # DOSTATIC is not set | 23 | # CONFIG_STATIC is not set |
24 | DOLFS=y | 24 | CONFIG_LFS=y |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -371,4 +371,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y | |||
371 | # | 371 | # |
372 | # Debugging Options | 372 | # Debugging Options |
373 | # | 373 | # |
374 | # DODEBUG is not set | 374 | # CONFIG_DEBUG is not set |
diff --git a/debian/config-static b/debian/config-static index 082c46da9..454bbf25d 100644 --- a/debian/config-static +++ b/debian/config-static | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | DOSTATIC=y | 23 | CONFIG_STATIC=y |
24 | DOLFS=y | 24 | CONFIG_LFS=y |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -486,4 +486,4 @@ CONFIG_FEATURE_MTAB_FILENAME="/etc/mtab" | |||
486 | # | 486 | # |
487 | # Debugging Options | 487 | # Debugging Options |
488 | # | 488 | # |
489 | # DODEBUG is not set | 489 | # CONFIG_DEBUG is not set |
diff --git a/debian/config-udeb b/debian/config-udeb index be119aa3e..b78c6a583 100644 --- a/debian/config-udeb +++ b/debian/config-udeb | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | # DOSTATIC is not set | 23 | # CONFIG_STATIC is not set |
24 | DOLFS=y | 24 | CONFIG_LFS=y |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -398,4 +398,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y | |||
398 | # | 398 | # |
399 | # Debugging Options | 399 | # Debugging Options |
400 | # | 400 | # |
401 | # DODEBUG is not set | 401 | # CONFIG_DEBUG is not set |
diff --git a/debian/config-udeb-i386 b/debian/config-udeb-i386 index e12e8c178..72fc4c342 100644 --- a/debian/config-udeb-i386 +++ b/debian/config-udeb-i386 | |||
@@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y | |||
20 | # | 20 | # |
21 | # Build Options | 21 | # Build Options |
22 | # | 22 | # |
23 | # DOSTATIC is not set | 23 | # CONFIG_STATIC is not set |
24 | DOLFS=y | 24 | CONFIG_LFS=y |
25 | # USING_CROSS_COMPILER is not set | 25 | # USING_CROSS_COMPILER is not set |
26 | EXTRA_CFLAGS_OPTIONS="" | 26 | EXTRA_CFLAGS_OPTIONS="" |
27 | 27 | ||
@@ -410,4 +410,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y | |||
410 | # | 410 | # |
411 | # Debugging Options | 411 | # Debugging Options |
412 | # | 412 | # |
413 | # DODEBUG is not set | 413 | # CONFIG_DEBUG is not set |
diff --git a/debian/rules b/debian/rules index 47605fa71..82bf9f04a 100755 --- a/debian/rules +++ b/debian/rules | |||
@@ -11,7 +11,7 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) | |||
11 | VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) | 11 | VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) |
12 | 12 | ||
13 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) | 13 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
14 | DODEBUG = true | 14 | CONFIG_DEBUG = true |
15 | endif | 15 | endif |
16 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) | 16 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
17 | endif | 17 | endif |
@@ -39,7 +39,7 @@ else | |||
39 | endif | 39 | endif |
40 | 40 | ||
41 | $(MAKE) dep | 41 | $(MAKE) dep |
42 | $(MAKE) DODEBUG=$(DODEBUG) | 42 | $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG) |
43 | 43 | ||
44 | install -d install-$(PACKAGE_PREFIX)/bin | 44 | install -d install-$(PACKAGE_PREFIX)/bin |
45 | install busybox install-$(PACKAGE_PREFIX)/bin/busybox | 45 | install busybox install-$(PACKAGE_PREFIX)/bin/busybox |
@@ -57,7 +57,7 @@ else | |||
57 | endif | 57 | endif |
58 | 58 | ||
59 | $(MAKE) dep | 59 | $(MAKE) dep |
60 | $(MAKE) DODEBUG=$(DODEBUG) | 60 | $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG) |
61 | 61 | ||
62 | install -d install-$(PACKAGE_PREFIX)-static/bin | 62 | install -d install-$(PACKAGE_PREFIX)-static/bin |
63 | install busybox install-$(PACKAGE_PREFIX)-static/bin/busybox | 63 | install busybox install-$(PACKAGE_PREFIX)-static/bin/busybox |
@@ -75,7 +75,7 @@ else | |||
75 | endif | 75 | endif |
76 | 76 | ||
77 | $(MAKE) dep | 77 | $(MAKE) dep |
78 | $(MAKE) DODEBUG=$(DODEBUG) | 78 | $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG) |
79 | 79 | ||
80 | $(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-udeb install | 80 | $(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-udeb install |
81 | 81 | ||
@@ -89,7 +89,7 @@ ifneq ($(wildcard ./debian/config-net-udeb-$(DEB_HOST_ARCH)),) | |||
89 | cp ./debian/config-net-udeb-$(DEB_HOST_ARCH) .config | 89 | cp ./debian/config-net-udeb-$(DEB_HOST_ARCH) .config |
90 | 90 | ||
91 | $(MAKE) dep | 91 | $(MAKE) dep |
92 | $(MAKE) DODEBUG=$(DODEBUG) | 92 | $(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG) |
93 | 93 | ||
94 | $(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-net-udeb install | 94 | $(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-net-udeb install |
95 | endif | 95 | endif |
diff --git a/sysdeps/linux/Config.in b/sysdeps/linux/Config.in index 4d72cd688..d5adee5d0 100644 --- a/sysdeps/linux/Config.in +++ b/sysdeps/linux/Config.in | |||
@@ -90,21 +90,39 @@ config CONFIG_FEATURE_SUID | |||
90 | bool "Support for SUID/SGID handling" | 90 | bool "Support for SUID/SGID handling" |
91 | default n | 91 | default n |
92 | help | 92 | help |
93 | Please submit a patch to add help text for this item. | 93 | Support SUID and SGID binaries. |
94 | 94 | ||
95 | config CONFIG_FEATURE_SUID_CONFIG | 95 | config CONFIG_FEATURE_SUID_CONFIG |
96 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" | 96 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" |
97 | default y if CONFIG_FEATURE_SUID | 97 | default y if CONFIG_FEATURE_SUID |
98 | depends on CONFIG_FEATURE_SUID | 98 | depends on CONFIG_FEATURE_SUID |
99 | help | 99 | help |
100 | Please submit a patch to add help text for this item. | 100 | Allow the SUID / SGID state of an applet to be determinded runtime by |
101 | checking /etc/busybox.conf. The format of this file is as follows: | ||
102 | |||
103 | <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) | ||
104 | |||
105 | An example might help: | ||
106 | |||
107 | [SUID] | ||
108 | su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0 | ||
109 | su = ssx # exactly the same | ||
110 | |||
111 | mount = sx- root.disk # applet mount can be run by root and members of group disk | ||
112 | # and runs with euid=0 | ||
113 | |||
114 | cp = --- # disable applet cp for everyone | ||
115 | |||
116 | Robert 'sandman' Griebl has more information here: | ||
117 | <url: http://www.softforge.de/bb/suid.html >. | ||
101 | 118 | ||
102 | config CONFIG_FEATURE_SUID_CONFIG_QUIET | 119 | config CONFIG_FEATURE_SUID_CONFIG_QUIET |
103 | bool "Suppress warning message if /etc/busybox.conf is not readable" | 120 | bool "Suppress warning message if /etc/busybox.conf is not readable" |
104 | default n | 121 | default n |
105 | depends on CONFIG_FEATURE_SUID_CONFIG | 122 | depends on CONFIG_FEATURE_SUID_CONFIG |
106 | help | 123 | help |
107 | Please submit a patch to add help text for this item. | 124 | /etc/busybox.conf should be readable by the user needing the SUID, check |
125 | this option to avoid users to be notified about missing permissions. | ||
108 | 126 | ||
109 | config CONFIG_SELINUX | 127 | config CONFIG_SELINUX |
110 | bool "Support NSA Security Enhanced Linux" | 128 | bool "Support NSA Security Enhanced Linux" |
@@ -117,14 +135,21 @@ endmenu | |||
117 | 135 | ||
118 | menu 'Build Options' | 136 | menu 'Build Options' |
119 | 137 | ||
120 | config DOSTATIC | 138 | config CONFIG_STATIC |
121 | bool "Build BusyBox as a static binary (no shared libs)" | 139 | bool "Build BusyBox as a static binary (no shared libs)" |
122 | default n | 140 | default n |
123 | help | 141 | help |
124 | If you want to build a static BusyBox binary, which does not | 142 | If you want to build a static BusyBox binary, which does not |
125 | use or require any shared libraries, then enable this option. | 143 | use or require any shared libraries, then enable this option. |
144 | This can make BusyBox be considerably larger, so you should | ||
145 | leave this option false unless you have a good reason (i.e. | ||
146 | your target platform does not support shared libraries, or | ||
147 | you are building an initrd which doesn't need anything but | ||
148 | BusyBox, etc). | ||
126 | 149 | ||
127 | config DOLFS | 150 | Most people will leave this set to 'N'. |
151 | |||
152 | config CONFIG_LFS | ||
128 | bool "Build with Large File Support (for accessing files > 2 GB)" | 153 | bool "Build with Large File Support (for accessing files > 2 GB)" |
129 | default n | 154 | default n |
130 | help | 155 | help |
@@ -201,21 +226,7 @@ source util-linux/Config.in | |||
201 | 226 | ||
202 | menu 'Debugging Options' | 227 | menu 'Debugging Options' |
203 | 228 | ||
204 | config DOSTATIC | 229 | config CONFIG_DEBUG |
205 | bool "Build BusyBox as a static binary (no shared libs)" | ||
206 | default n | ||
207 | help | ||
208 | If you want to build a static BusyBox binary, which does not | ||
209 | use or require any shared libraries, then enable this option. | ||
210 | This will make BusyBox be considerable larger, so you should | ||
211 | leave this option false unless you have a good reason (i.e. | ||
212 | your target platform does not support shared libraries, or | ||
213 | you are building an initrd which doesn't need anything but | ||
214 | BusyBox, etc). | ||
215 | |||
216 | Most people will leave this set to 'N'. | ||
217 | |||
218 | config DODEBUG | ||
219 | bool "Build BusyBox with Debugging symbols" | 230 | bool "Build BusyBox with Debugging symbols" |
220 | default n | 231 | default n |
221 | help | 232 | help |
@@ -227,10 +238,10 @@ config DODEBUG | |||
227 | 238 | ||
228 | Otherwise, answer N. | 239 | Otherwise, answer N. |
229 | 240 | ||
230 | config DODMALLOC | 241 | config CONFIG_DMALLOC |
231 | bool "Build BusyBox with dmalloc support" | 242 | bool "Build BusyBox with dmalloc support" |
232 | default n | 243 | default n |
233 | depends on DODEBUG && !DOEFENCE | 244 | depends on CONFIG_DEBUG && !CONFIG_EFENCE |
234 | help | 245 | help |
235 | This enables compiling with dmalloc ( http://dmalloc.com/ ) | 246 | This enables compiling with dmalloc ( http://dmalloc.com/ ) |
236 | which is an excellent public domain mem leak and malloc problem | 247 | which is an excellent public domain mem leak and malloc problem |
@@ -245,10 +256,10 @@ config DODMALLOC | |||
245 | This will make BusyBox be considerable larger and run slower, so | 256 | This will make BusyBox be considerable larger and run slower, so |
246 | you should leave this option disabled for production use. | 257 | you should leave this option disabled for production use. |
247 | 258 | ||
248 | config DOEFENCE | 259 | config CONFIG_EFENCE |
249 | bool "Build BusyBox with Electric-fence support" | 260 | bool "Build BusyBox with Electric-fence support" |
250 | default n | 261 | default n |
251 | depends on DODEBUG && !DODMALLOC | 262 | depends on CONFIG_DEBUG && !CONFIG_DMALLOC |
252 | help | 263 | help |
253 | This enables compiling with Electric-fence support. Electric | 264 | This enables compiling with Electric-fence support. Electric |
254 | fence is another very useful malloc debugging library which used | 265 | fence is another very useful malloc debugging library which used |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 89f8d60ca..67324116d 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -408,7 +408,7 @@ static void domark(int sig) | |||
408 | } | 408 | } |
409 | } | 409 | } |
410 | 410 | ||
411 | /* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are | 411 | /* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are |
412 | * enabled, we otherwise get a "storage size isn't constant error. */ | 412 | * enabled, we otherwise get a "storage size isn't constant error. */ |
413 | static int serveConnection(char *tmpbuf, int n_read) | 413 | static int serveConnection(char *tmpbuf, int n_read) |
414 | { | 414 | { |